Esempio n. 1
0
 /// <summary>
 /// 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.
 /// </summary>
 /// <param name="context">The context of the event carries information in and results out.</param>
 /// <returns>Task to enable asynchronous execution</returns>
 public virtual Task MatchEndpoint(OAuthMatchEndpointContext context)
 {
     return(OnMatchEndpoint.Invoke(context));
 }
Esempio n. 2
0
 /// <summary>
 /// 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.
 /// </summary>
 /// <param name="context">The context of the event carries information in and results out.</param>
 /// <returns>Task to enable asynchronous execution</returns>
 public virtual Task MatchEndpoint(OAuthMatchEndpointNotification context)
 {
     return(OnMatchEndpoint.Invoke(context));
 }