Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for alternate keychains in expression. #580

Merged
merged 3 commits into from Jun 8, 2022

Conversation

jaraco
Copy link
Owner

@jaraco jaraco commented Jun 5, 2022

@jaraco
Copy link
Owner Author

jaraco commented Jun 5, 2022

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
Copy link

matthewsht commented Jun 6, 2022 via email

@jaraco jaraco merged commit d1e37a5 into main Jun 8, 2022
@jaraco jaraco deleted the feature/macos-alt-keychain branch June 8, 2022 12:27
@a350h
Copy link

a350h commented Jun 13, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow keychain to be specified in macOS
3 participants