Method UseCredentialPersistence
UseCredentialPersistence(IAuthenticationConfiguration)
Registers a default platform credential persistance instance for storing credentials across sessions.
Declaration
public static IAuthenticationConfiguration UseCredentialPersistence(this IAuthenticationConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| IAuthenticationConfiguration | configuration | Authentication Configuration. |
Returns
| Type | Description |
|---|---|
| IAuthenticationConfiguration | Authentication Configuration. |
Exceptions
| Type | Condition |
|---|---|
| System.PlatformNotSupportedException | Thrown if the platform doesn't have a default credential persistence. |
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.8 |
| .NET | 200.8 |
| .NET Windows | 200.8 |
| .NET Android | 200.8 |
| .NET iOS | 200.8 |
| .NET Framework | 200.8 |
| UWP | 200.8 |
UseCredentialPersistence(IAuthenticationConfiguration, CredentialPersistence)
Registers a credential persistance instance for storing credentials across sessions.
Declaration
public static IAuthenticationConfiguration UseCredentialPersistence(this IAuthenticationConfiguration configuration, CredentialPersistence credentialPersistence)
Parameters
| Type | Name | Description |
|---|---|---|
| IAuthenticationConfiguration | configuration | Authentication Configuration. |
| CredentialPersistence | credentialPersistence | The credential persistence object. |
Returns
| Type | Description |
|---|---|
| IAuthenticationConfiguration | Authentication Configuration. |
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.8 |
| .NET | 200.8 |
| .NET Windows | 200.8 |
| .NET Android | 200.8 |
| .NET iOS | 200.8 |
| .NET Framework | 200.8 |
| UWP | 200.8 |