jaraco / keyring

MIT License
1.24k stars 156 forks source link

Add support for alternate keychains in expression. #580

Closed jaraco closed 2 years ago

jaraco commented 2 years ago
jaraco commented 2 years ago

With this change, one can now easily select the relevant keychain thus:

keyring.get_keyring().with_keychain('~/Library/Keychains/alt.keychain-db').get_password(...)

And one can re-use that alternate keychain path with:

alt = keyring.get_keyring().with_keychain('...')
alt.set_password(...)
alt.get_password(...)
matthewsht commented 2 years ago

This is very welcome to us MacOS users.

-- Hunter Matthews Scientific System Engineer [C] NIH/National Human Genome Research Institute @.**@.> | (919) 491-2124

On Jun 4, 2022, at 9:23 PM, Jason R. Coombs @.**@.>> wrote:

With this change, one can now easily select the relevant keychain thus:

keyring.get_keyring().with_keychain('~/Library/Keychains/alt.keychain-db').get_password(...)

And one can re-use that alternate keychain path with:

alt = keyring.get_keyring().with_keychain('...') alt.set_password(...) alt.get_password(...)

— Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjaraco%2Fkeyring%2Fpull%2F580%23issuecomment-1146718474&data=05%7C01%7Chunter.matthews%40nih.gov%7C6c1c675dcf3b42b180dd08da46920ce3%7C14b77578977342d58507251ca2dc2b06%7C0%7C0%7C637899890345706548%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=QLVFdMutpJ%2BZhvHOS78HD0l618F36yJYSLRPMLYvoB8%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FATFEQQ6Z5YPNE2IRNADEEZDVNP6SNANCNFSM5X4IJ2HA&data=05%7C01%7Chunter.matthews%40nih.gov%7C6c1c675dcf3b42b180dd08da46920ce3%7C14b77578977342d58507251ca2dc2b06%7C0%7C0%7C637899890345706548%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qVhZgYI8MIJJwC2wAp9rM0zIIfK%2Fudoqmn3Chpsug9g%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.***>

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and are confident the content is safe.

a350h commented 2 years ago

This also solved #571 in a much more elegant manner than i proposed.