Share via


OAuthAuthorizationServerProvider.MatchEndpoint Method

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 Overridable Function MatchEndpoint ( _
    context As OAuthMatchEndpointContext _
) As Task
'Usage
Dim instance As OAuthAuthorizationServerProvider 
Dim context As OAuthMatchEndpointContext 
Dim returnValue As Task 

returnValue = instance.MatchEndpoint(context)
public virtual Task MatchEndpoint(
    OAuthMatchEndpointContext context
)
public:
virtual Task^ MatchEndpoint(
    OAuthMatchEndpointContext^ context
)
abstract MatchEndpoint : 
        context:OAuthMatchEndpointContext -> Task  
override MatchEndpoint : 
        context:OAuthMatchEndpointContext -> Task
public function MatchEndpoint(
    context : OAuthMatchEndpointContext
) : Task

Parameters

Return Value

Type: System.Threading.Tasks.Task
Task to enable asynchronous execution

Implements

IOAuthAuthorizationServerProvider.MatchEndpoint(OAuthMatchEndpointContext)

See Also

Reference

OAuthAuthorizationServerProvider Class

Microsoft.Owin.Security.OAuth Namespace