Поделиться через


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

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
Public Property OnMatchEndpoint As Func(Of OAuthMatchEndpointContext, Task)

Property Value

Type: System.Func<OAuthMatchEndpointContext, Task>

Returns Func<T, TResult>.

See Also

OAuthAuthorizationServerProvider Class
Microsoft.Owin.Security.OAuth Namespace

Return to top