Skip to content

ICredentialProvider

Troy Willmot edited this page Oct 16, 2016 · 2 revisions

Summary

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.

Methods

Task GetCredentials()

Should return an awaitable task whose result is an implementation of the ICredentials interface, providing access to the raw, unencrypted credentials.

Clone this wiki locally