コード例 #1
0
        public void Init()
        {
            _context = new MockHttpContextAccessor().HttpContext;

            _validatedAuthorizeRequest = new ValidatedAuthorizeRequest()
            {
                RedirectUri  = "http://client/callback",
                State        = "123",
                ResponseMode = "fragment",
                ClientId     = "client",
                Client       = new Client
                {
                    ClientId   = "client",
                    ClientName = "Test Client"
                },
                Raw     = _params,
                Subject = _user
            };
            _stubAuthorizeResponseGenerator.Response.Request = _validatedAuthorizeRequest;

            _stubAuthorizeRequestValidator.Result = new AuthorizeRequestValidationResult(_validatedAuthorizeRequest);

            _subject = new AuthorizeEndpoint(
                _fakeEventService,
                _fakeLogger,
                _stubAuthorizeRequestValidator,
                _stubInteractionGenerator,
                _mockUserConsentResponseMessageStore,
                _stubAuthorizeResponseGenerator);
        }
コード例 #2
0
        public void Init()
        {
            _context = IdentityServerContextHelper.Create();

            _validatedAuthorizeRequest = new ValidatedAuthorizeRequest()
            {
                RedirectUri  = "http://client/callback",
                State        = "123",
                ResponseMode = "fragment",
                ClientId     = "client",
                Client       = new Client
                {
                    ClientId   = "client",
                    ClientName = "Test Client"
                },
                Raw     = _params,
                Subject = _user
            };

            _stubAuthorizeRequestValidator.Result.IsError          = false;
            _stubAuthorizeRequestValidator.Result.ValidatedRequest = _validatedAuthorizeRequest;

            _subject = new AuthorizeEndpoint(
                _mockEventService,
                _fakeLogger,
                _context,
                _stubAuthorizeRequestValidator,
                _stubInteractionGenerator,
                _stubResultFactory,
                _mockSignInResponseStore,
                _mockUserConsentResponseMessageStore);
        }
コード例 #3
0
        public AuthorizeConnector(string endpoint, Dictionary <string, string> headers)
        {
            this.endPoint = endpoint;
            this.Headers  = headers;

            this.AuthorizeBinding  = new AuthorizeBinding();
            this.AuthorizeEndpoint = new AuthorizeEndpoint(endPoint);
        }
コード例 #4
0
ファイル: AuthorizeConnector.cs プロジェクト: decidir/sdk-net
        public AuthorizeConnector(string endpoint, Dictionary<string, string> headers)
        {
            this.endPoint = endpoint;
            this.Headers = headers;

            this.AuthorizeBinding = new AuthorizeBinding();
            this.AuthorizeEndpoint = new AuthorizeEndpoint(endPoint);
        }