OAuthAuthorizationServerProvider.ValidateClientAuthentication Method

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

'Declaration
Public Overridable Function ValidateClientAuthentication ( _
    context As OAuthValidateClientAuthenticationContext _
) As Task
'Usage
Dim instance As OAuthAuthorizationServerProvider 
Dim context As OAuthValidateClientAuthenticationContext 
Dim returnValue As Task 

returnValue = instance.ValidateClientAuthentication(context)
public virtual Task ValidateClientAuthentication(
    OAuthValidateClientAuthenticationContext context
)
public:
virtual Task^ ValidateClientAuthentication(
    OAuthValidateClientAuthenticationContext^ context
)
abstract ValidateClientAuthentication : 
        context:OAuthValidateClientAuthenticationContext -> Task  
override ValidateClientAuthentication : 
        context:OAuthValidateClientAuthenticationContext -> Task
public function ValidateClientAuthentication(
    context : OAuthValidateClientAuthenticationContext
) : Task

Parameters

Return Value

Type: System.Threading.Tasks.Task
Task to enable asynchronous execution

Implements

IOAuthAuthorizationServerProvider.ValidateClientAuthentication(OAuthValidateClientAuthenticationContext)

See Also

Reference

OAuthAuthorizationServerProvider Class

Microsoft.Owin.Security.OAuth Namespace