public async Task <SecurityTokenCreatingContext> HandleSecurityTokenCreatingContext(HttpContext context, AuthenticationScheme scheme, SpidOptions options, AuthenticationProperties properties, string samlAuthnRequestId) { var securityTokenCreatingContext = new SecurityTokenCreatingContext(context, scheme, options, properties) { SamlAuthnRequestId = samlAuthnRequestId, TokenOptions = new SecurityTokenCreatingOptions { EntityId = options.EntityId, Certificate = options.Certificate, AssertionConsumerServiceIndex = options.AssertionConsumerServiceIndex, AttributeConsumingServiceIndex = options.AttributeConsumingServiceIndex } }; await _events.TokenCreating(securityTokenCreatingContext); return(securityTokenCreatingContext); }
public override Task TokenCreating(SecurityTokenCreatingContext context) { return(base.TokenCreating(context)); }