Interface IClientAuthenticator
Authenticate the OpenID client.
Namespace: ComponentSpace.OpenID.Security
Assembly: ComponentSpace.OpenID.dll
Syntax
public interface IClientAuthenticator
Methods
AuthenticateClientAsync(ProviderConfiguration, string?, string?, string?, string?, string?, string[]?)
Authenticates the client.
Declaration
Task<ClientAuthenticationResult> AuthenticateClientAsync(ProviderConfiguration providerConfiguration, string? clientID, string? clientSecret, string? clientAssertionType, string? clientAssertion, string? validAudience, string[]? authSigningAlgValuesSupported)
Parameters
| Type | Name | Description |
|---|---|---|
| ProviderConfiguration | providerConfiguration | The provider configuration. |
| string | clientID | The client ID. |
| string | clientSecret | The client secret. |
| string | clientAssertionType | The client assertion type. |
| string | clientAssertion | The client assertion. |
| string | validAudience | The valid audience URL. |
| string[] | authSigningAlgValuesSupported | The supported JWS signing algorithms (alg) used to authenticate the client. |
Returns
| Type | Description |
|---|---|
| Task<ClientAuthenticationResult> | A task that represents the operation and returns the client authentication result. |
Exceptions
| Type | Condition |
|---|---|
| OpenIDException | Thrown when the client cannot be authenticated. |