Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EndSessionController"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 /// <param name="validator">The validator.</param>
 /// <param name="generator">The generator.</param>
 /// <param name="clientListCookie">The client list.</param>
 /// <param name="clientStore">The client store.</param>
 /// <param name="sessionCookie">The session cookie.</param>
 public EndSessionController(IdentityServerOptions options, EndSessionRequestValidator validator, EndSessionResponseGenerator generator, ClientListCookie clientListCookie, IClientStore clientStore, SessionCookie sessionCookie)
 {
     _options          = options;
     _validator        = validator;
     _generator        = generator;
     _clientListCookie = clientListCookie;
     _clientStore      = clientStore;
     _sessionCookie    = sessionCookie;
 }
        public EndSessionRequestValidatorTests()
        {
            _user = IdentityServer4.IdentityServerPrincipal.Create("alice", "Alice");

            _context = IdentityServerContextHelper.Create();
            _subject = new EndSessionRequestValidator(
                TestLogger.Create <EndSessionRequestValidator>(),
                _context,
                _stubTokenValidator,
                _stubRedirectUriValidator);
        }
    public EndSessionRequestValidatorTests()
    {
        _user = new IdentityServerUser("alice").CreatePrincipal();

        _options = TestIdentityServerOptions.Create();
        _subject = new EndSessionRequestValidator(
            _context,
            _options,
            _stubTokenValidator,
            _stubRedirectUriValidator,
            _userSession,
            _mockLogoutNotificationService,
            _mockEndSessionMessageStore,
            TestLogger.Create <EndSessionRequestValidator>());
    }
Example #4
0
        public EndSessionRequestValidatorTests()
        {
            _user        = IdentityServerPrincipal.Create("alice", "Alice");
            _clientStore = new InMemoryClientStore(new Client[0]);

            _options = TestIdentityServerOptions.Create();
            _subject = new EndSessionRequestValidator(
                _context,
                _options,
                _stubTokenValidator,
                _stubRedirectUriValidator,
                _userSession,
                _clientStore,
                _mockEndSessionMessageStore,
                TestLogger.Create <EndSessionRequestValidator>());
        }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EndSessionController"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 /// <param name="validator">The validator.</param>
 /// <param name="generator">The generator.</param>
 public EndSessionController(IdentityServerOptions options, EndSessionRequestValidator validator, EndSessionResponseGenerator generator)
 {
     _options   = options;
     _validator = validator;
     _generator = generator;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WsFederationEndSessionRequestValidator"/> class.
 /// </summary>
 /// <param name="parent">The parent.</param>
 /// <exception cref="ArgumentNullException">parent</exception>
 public WsFederationEndSessionRequestValidator(EndSessionRequestValidator parent)
 {
     _parent = parent ?? throw new ArgumentNullException(nameof(parent));
 }
Example #7
0
 public WsFederationRedirectEndSessionRequestValidator(EndSessionRequestValidator validator, IEnumerable <Client> clients, IHttpContextAccessor context, IdentityServerOptions options, ITokenValidator tokenValidator, IRedirectUriValidator uriValidator, IUserSession userSession, IClientStore clientStore, IMessageStore <EndSession> endSessionMessageStore, ILogger <WsFederationRedirectEndSessionRequestValidator> logger)
 {
     _validator = validator;
     _clients   = clients;
     _logger    = logger;
 }