OAuthAuthorizationServerProvider.ValidateClientAuthentication Method (OAuthValidateClientAuthenticationContext)

 

Called to validate that the origin of the request is a registered "client_id", and that the correct credentials for that client are present on the request. If the web application accepts Basic authentication credentials, context.TryGetBasicCredentials(out clientId, out clientSecret) may be called to acquire those values if present in the request header. If the web application accepts "client_id" and "client_secret" as form encoded POST parameters, context.TryGetFormCredentials(out clientId, out clientSecret) may be called to acquire those values if present in the request body. If context.Validated is not called the request will not proceed further.

Namespace:   Microsoft.Owin.Security.OAuth
Assembly:  Microsoft.Owin.Security.OAuth (in Microsoft.Owin.Security.OAuth.dll)

Syntax

public virtual Task ValidateClientAuthentication(
    OAuthValidateClientAuthenticationContext context
)
public:
virtual Task^ ValidateClientAuthentication(
    OAuthValidateClientAuthenticationContext^ context
)
abstract ValidateClientAuthentication : 
        context:OAuthValidateClientAuthenticationContext -> Task
override ValidateClientAuthentication : 
        context:OAuthValidateClientAuthenticationContext -> Task
Public Overridable Function ValidateClientAuthentication (
    context As OAuthValidateClientAuthenticationContext
) As Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

Task to enable asynchronous execution

Implements

IOAuthAuthorizationServerProvider.ValidateClientAuthentication(OAuthValidateClientAuthenticationContext)

See Also

OAuthAuthorizationServerProvider Class
Microsoft.Owin.Security.OAuth Namespace

Return to top