OAuthAuthorizationServerProvider.OnMatchEndpoint Property

Called to determine if an incoming request is treated as an Authorize or Token endpoint. If Options.AuthorizeEndpointPath or Options.TokenEndpointPath are assigned values, then handling this event is optional and context.IsAuthorizeEndpoint and context.IsTokenEndpoint will already be true if the request path matches.

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

Syntax

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

value = instance.OnMatchEndpoint

instance.OnMatchEndpoint = value
public Func<OAuthMatchEndpointContext, Task> OnMatchEndpoint { get; set; }
public:
property Func<OAuthMatchEndpointContext^, Task^>^ OnMatchEndpoint {
    Func<OAuthMatchEndpointContext^, Task^>^ get ();
    void set (Func<OAuthMatchEndpointContext^, Task^>^ value);
}
member OnMatchEndpoint : Func<OAuthMatchEndpointContext, Task> with get, set
function get OnMatchEndpoint () : Func<OAuthMatchEndpointContext, Task>
function set OnMatchEndpoint (value : Func<OAuthMatchEndpointContext, Task>)

Property Value

Type: System.Func<OAuthMatchEndpointContext, Task>

See Also

Reference

OAuthAuthorizationServerProvider Class

Microsoft.Owin.Security.OAuth Namespace