/// <summary>
 /// Initializes a new instance of the <see cref="DefaultTokenService" /> class.
 /// </summary>
 /// <param name="options">The options.</param>
 /// <param name="claimsProvider">The claims provider.</param>
 /// <param name="tokenHandles">The token handles.</param>
 /// <param name="signingService">The signing service.</param>
 /// <param name="events">The OWIN environment service.</param>
 /// <param name="issuerUri">The issuer url.</param>
 public DefaultTokenService(IdentityServerOptions options, IClaimsProvider claimsProvider, ITokenHandleStore tokenHandles, ITokenSigningService signingService, IEventService events, string issuerUri)
 {
     _options        = options;
     _claimsProvider = claimsProvider;
     _tokenHandles   = tokenHandles;
     _signingService = signingService;
     _events         = events;
     _issuerUri      = issuerUri;
     _wsUri          = OwinEnvironmentExtensions.GetWebServiceUriFromIssuerUri(issuerUri);
 }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DefaultRefreshTokenService" /> class.
        /// </summary>
        /// <param name="store">The refresh token store.</param>
        /// <param name="events">The events.</param>
        /// <param name="issuerUri">The issuer uri.</param>
        public DefaultRefreshTokenService(IRefreshTokenStore store, IEventService events, string issuerUri)
            : this(store, events)
        {
            if (string.IsNullOrEmpty(issuerUri))
            {
                throw new ArgumentNullException("issuerUri");
            }

            _issuerUri = issuerUri;
            _wsUri     = OwinEnvironmentExtensions.GetWebServiceUriFromIssuerUri(issuerUri);
        }