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

feat: add TryLogin(string, SecureString) methods #143

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michaelgwelch
Copy link
Member

This commit does all the following

  • Add TryLogin(string, SecureString) methods so that the password can be passed as a SecureString
  • Added credential manager classes for Linux, macOS and Windows
    • macOS: KeyChain
    • Linux: libsecret (depends on libsecret-tools cli)
    • Windows: Credential Manager
  • Create dotnet tool metasys-secrets which is cross platform and can be used on macOS, Linux and Windows to add credentials to the default credential manager
  • Added steps in CI build to test on Windows and macOS as well

@michaelgwelch michaelgwelch force-pushed the welch/addCredentialManagersForLinuxMacOS branch from 7d9b2fb to 54016ea Compare August 1, 2024 02:14
@michaelgwelch michaelgwelch changed the base branch from master to main August 4, 2024 15:18
This commit does all the following

- Add TryLogin(string, SecureString) methods so that the password can be
  passed as a SecureString
- Added credential manager classes for Linux, macOS and Windows
  - macOS: KeyChain
  - Linux: libsecret (depends on libsecret-tools cli)
  - Windows: Credential Manager
- Add TryLogin(string) methods. This will load the credentials based on
  hostname and username on all OSes.
- Add support for TryLogin() on all OSes. Looks up credentials based
  on hostname
- Create dotnet tool `metasys-secrets` which is cross platform and can
  be used on macOS, Linux and Windows to add credentials to the default
  credential manager
- Added steps in CI build to test on Windows and macOS as well
- Deprecate all of the TryLogin methods that take a bool for refreshToken
  since it wasn't doing anything and there's no reason to not refresh the
  token automatically. It's not a choice that should be exposesd to a user
  without a good reason why they would want to set it to false.
@michaelgwelch michaelgwelch force-pushed the welch/addCredentialManagersForLinuxMacOS branch from 54016ea to 01652e3 Compare August 6, 2024 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant