IOAuthAuthorizationServerProvider.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
Function ValidateClientAuthentication ( _
context As OAuthValidateClientAuthenticationContext _
) As Task
'Usage
Dim instance As IOAuthAuthorizationServerProvider
Dim context As OAuthValidateClientAuthenticationContext
Dim returnValue As Task
returnValue = instance.ValidateClientAuthentication(context)
Task ValidateClientAuthentication(
OAuthValidateClientAuthenticationContext context
)
Task^ ValidateClientAuthentication(
OAuthValidateClientAuthenticationContext^ context
)
abstract ValidateClientAuthentication :
context:OAuthValidateClientAuthenticationContext -> Task
function ValidateClientAuthentication(
context : OAuthValidateClientAuthenticationContext
) : Task
Parameters
- context
Type: Microsoft.Owin.Security.OAuth.OAuthValidateClientAuthenticationContext
The context of the event carries information in and results out.
Return Value
Type: System.Threading.Tasks.Task
Task to enable asynchronous execution