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. |
System.String | clientID | The client ID. |
System.String | clientSecret | The client secret. |
System.String | clientAssertionType | The client assertion type. |
System.String | clientAssertion | The client assertion. |
System.String | validAudience | The valid audience URL. |
System.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. |