Example #1
0
 /// <summary>
 /// 自定义授权时的验证
 /// </summary>
 /// <param name="context"></param>
 /// <returns></returns>
 public override Task GrantCustomExtension(OAuthGrantCustomExtensionContext context)
 {
     return(base.GrantCustomExtension(context));
 }
Example #2
0
 /// <summary>
 /// Called when a request to the Token endpoint arrives with a "grant_type" of any other value. If the application supports custom grant types
 /// it is entirely responsible for determining if the request should result in an access_token. If context.Validated is called with ticket
 /// information the response body is produced in the same way as the other standard grant types. If additional response parameters must be
 /// included they may be added in the final TokenEndpoint call.
 /// See also http://tools.ietf.org/html/rfc6749#section-4.5
 /// </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 GrantCustomExtension(OAuthGrantCustomExtensionContext context)
 {
     return(OnGrantCustomExtension.Invoke(context));
 }