Exemplo n.º 1
0
            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);
            }
Exemplo n.º 2
0
 public override Task TokenCreating(SecurityTokenCreatingContext context)
 {
     return(base.TokenCreating(context));
 }