private async Task <SecurityTokenContext> RunSecurityTokenReceivedEventAsync(WsFederationMessage message) { Logger.LogTrace($"SecurityTokenReceived: {message.GetToken()}"); var securityTokenContext = new SecurityTokenContext(Context, Options) { ProtocolMessage = message }; await Options.Events.SecurityTokenReceived(securityTokenContext); if (securityTokenContext.HandledResponse) { Logger.LogDebug("SecurityTokenContext.HandledResponse"); } else if (securityTokenContext.Skipped) { Logger.LogDebug("SecurityTokenContext.HandledResponse"); } return(securityTokenContext); }
public Task SecurityTokenReceived(SecurityTokenContext context) => OnSecurityTokenReceived(context);