Share via


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

'Declaration
Public Property OnValidateClientAuthentication As Func(Of OAuthValidateClientAuthenticationContext, Task)
    Get 
    Set
'Usage
Dim instance As OAuthAuthorizationServerProvider 
Dim value As Func(Of OAuthValidateClientAuthenticationContext, Task)

value = instance.OnValidateClientAuthentication

instance.OnValidateClientAuthentication = value
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
function get OnValidateClientAuthentication () : Func<OAuthValidateClientAuthenticationContext, Task>
function set OnValidateClientAuthentication (value : Func<OAuthValidateClientAuthenticationContext, Task>)

Property Value

Type: System.Func<OAuthValidateClientAuthenticationContext, Task>

See Also

Reference

OAuthAuthorizationServerProvider Class

Microsoft.Owin.Security.OAuth Namespace