コード例 #1
0
        private async Task <TokenResponseReceivedContext> RunTokenResponseReceivedEventAsync(OpenIdConnectMessage message, OpenIdConnectMessage tokenEndpointResponse, AuthenticationProperties properties)
        {
            Logger.TokenResponseReceived();
            var eventContext = new TokenResponseReceivedContext(Context, Options, properties)
            {
                ProtocolMessage       = message,
                TokenEndpointResponse = tokenEndpointResponse
            };

            await Options.Events.TokenResponseReceived(eventContext);

            if (eventContext.HandledResponse)
            {
                Logger.TokenResponseReceivedHandledResponse();
            }
            else if (eventContext.Skipped)
            {
                Logger.TokenResponseReceivedSkipped();
            }

            return(eventContext);
        }
コード例 #2
0
 /// <summary>
 /// Invoked after an authorization code is redeemed for tokens at the token endpoint.
 /// </summary>
 public virtual Task TokenResponseReceived(TokenResponseReceivedContext context) => OnTokenResponseReceived(context);
コード例 #3
0
 public override Task TokenResponseReceived(TokenResponseReceivedContext context)
 {
     return base.TokenResponseReceived(context);
 }
コード例 #4
0
 public virtual Task TokenResponseReceived(TokenResponseReceivedContext context) => OnTokenResponseReceived(context);