-
Notifications
You must be signed in to change notification settings - Fork 1
ICredentialProvider
The ICredentialProvider interface is for components that can read or hold credentials and provide them to other components for use for authentication. By providing a component that manages the credentials, advanced use cases can reduce the time unencrypted credentials are in memory, reducing the chance of being leaked via RAM scraping etc. This also provides a location to put code for reading and decrypting credentials, in a way that supports dependency injection.
For simple use cases where you just want to keep the credentials in memory as standard .Net strings, see the SimpleCredentialProvider.
Should return an awaitable task whose result is an implementation of the ICredentials interface, providing access to the raw, unencrypted credentials.