public DefaultSigningCredentialsSource( IOptions <IdentityServiceOptions> options, ITimeStampManager timeStampManager) { _options = options; _timeStampManager = timeStampManager; }
public DeveloperCertificateSigningCredentialsSource( IHostingEnvironment environment, ITimeStampManager timeStampManager) { _environment = environment; _timeStampManager = timeStampManager; }
public TimestampsTokenClaimsProvider( ITimeStampManager timestampManager, IOptions <IdentityServiceOptions> options) { _timeStampManager = timestampManager; _options = options; }
public DefaultSigningCredentialsPolicyProvider( IEnumerable <ISigningCredentialsSource> sources, ITimeStampManager timeStampManager, IHostingEnvironment environment) { _sources = sources; _timeStampManager = timeStampManager; _environment = environment; }
public TestSessionManager( IOptions <IdentityServiceOptions> options, IOptions <IdentityOptions> identityOptions, IOptionsSnapshot <CookieAuthenticationOptions> cookieOptions, ITimeStampManager timeStampManager, IHttpContextAccessor contextAccessor, ProtocolErrorProvider errorProvider) : base(options, identityOptions, cookieOptions, timeStampManager, contextAccessor, errorProvider) { }
public DeveloperCertificateMiddleware( RequestDelegate next, IOptions <DeveloperCertificateOptions> options, ITimeStampManager timeStampManager, IHostingEnvironment environment, IConfiguration configuration) { _next = next; _options = options; _environment = environment; _timeStampManager = timeStampManager; _configuration = configuration; }
private ITokenClaimsManager GetClaimsManager(ITimeStampManager timeManager = null) { var options = GetOptions(); return(new DefaultTokenClaimsManager(new ITokenClaimsProvider[] { new DefaultTokenClaimsProvider(options), new GrantedTokensTokenClaimsProvider(), new NonceTokenClaimsProvider(), new ScopesTokenClaimsProvider(), new TimestampsTokenClaimsProvider(timeManager ?? new TimeStampManager(), options), new TokenHashTokenClaimsProvider(new TokenHasher()) })); }
public SessionManager( IOptions <IdentityServiceOptions> options, IOptions <IdentityOptions> identityOptions, IOptionsSnapshot <CookieAuthenticationOptions> cookieOptions, ITimeStampManager timeStampManager, IHttpContextAccessor contextAccessor, ProtocolErrorProvider errorProvider) { _options = options; _identityOptions = identityOptions; _timeStampManager = timeStampManager; _contextAccessor = contextAccessor; _errorProvider = errorProvider; _sessionCookieOptions = cookieOptions.Get(IdentityServiceOptions.CookieAuthenticationScheme); }
private ISigningCredentialsPolicyProvider GetSigningPolicy( IOptions <IdentityServiceOptions> options, ITimeStampManager timeManager) { var mock = new Mock <IOptionsSnapshot <IdentityServiceOptions> >(); mock.Setup(m => m.Value).Returns(options.Value); mock.Setup(m => m.Get(It.IsAny <string>())).Returns(options.Value); return(new DefaultSigningCredentialsPolicyProvider( new List <ISigningCredentialsSource> { new DefaultSigningCredentialsSource(mock.Object, timeManager) }, timeManager, new HostingEnvironment())); }
public TokenRequestFactory( IClientIdValidator clientIdValidator, IRedirectUriResolver redirectUriValidator, IScopeResolver scopeResolver, IEnumerable <ITokenRequestValidator> validators, ITokenManager tokenManager, ITimeStampManager timeStampManager, ProtocolErrorProvider errorProvider) { _clientIdValidator = clientIdValidator; _redirectUriValidator = redirectUriValidator; _scopeResolver = scopeResolver; _validators = validators; _tokenManager = tokenManager; _errorProvider = errorProvider; _timeStampManager = timeStampManager; }
public DefaultAuthorizationResponseParameterProvider(ITimeStampManager manager) { _manager = manager; }
public DefaultTokenResponseParameterProvider(ITimeStampManager manager) { _manager = manager; }