public SecurityTokenService( IdentityProviderProvider identityProviders, RelyingPartyProvider relyingParties, IncomingClaimsMapper mapper, OutgoingSubjectFactory subjectFactory, SecurityTokenHandlerProvider securityTokenHandlerProvider, IServiceProvider services, ILoggerFactory loggerFactory, IOptions <WsTrustOptions> options, ISystemClock systemClock) { Logger = loggerFactory.CreateLogger(GetType().FullName); IdentityProviders = identityProviders; RelyingParties = relyingParties; Mapper = mapper; SubjectFactory = subjectFactory; SecurityTokenHandlerProvider = securityTokenHandlerProvider; Services = services; Options = options.Value; SystemClock = systemClock; }
public WsTrustSerializerFactory(SecurityTokenHandlerProvider provider) { SecurityTokenHandlerProvider = provider; }
protected virtual ValueTask <SecurityTokenHandler> GetSecurityTokenHandlerAsync(string tokenType, CancellationToken cancellationToken) { var handler = SecurityTokenHandlerProvider.GetSecurityTokenHandler(tokenType); return(new ValueTask <SecurityTokenHandler>(handler)); }