OAuthAuthorizationServerProvider.OnValidateClientAuthentication Property
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 Func<OAuthValidateClientAuthenticationContext, Task> OnValidateClientAuthentication { get; set; }
public:
property Func<OAuthValidateClientAuthenticationContext^, Task^>^ OnValidateClientAuthentication {
Func<OAuthValidateClientAuthenticationContext^, Task^>^ get();
void set(Func<OAuthValidateClientAuthenticationContext^, Task^>^ value);
}
member OnValidateClientAuthentication : Func<OAuthValidateClientAuthenticationContext, Task> with get, set
Public Property OnValidateClientAuthentication As Func(Of OAuthValidateClientAuthenticationContext, Task)
Property Value
Type: System.Func<OAuthValidateClientAuthenticationContext, Task>
Returns Func<T, TResult>.
See Also
OAuthAuthorizationServerProvider Class
Microsoft.Owin.Security.OAuth Namespace
Return to top