Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for Authorization (0.12 sec)

  1. src/test/java/jcifs/http/NtlmServletTest.java

            // This should not throw an exception
            assertDoesNotThrow(() -> ntlmServlet.init(servletConfig));
        }
    
        /**
         * Test the service method when no Authorization header is present and no session exists.
         * Expects a 401 Unauthorized response with NTLM and Basic authentication challenges.
         * @throws ServletException
         * @throws IOException
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticator.java

            }).orElse(null);
        }
    
        /**
         * Gets the authorization URL for OpenID Connect.
         *
         * @param request the HTTP servlet request
         * @return the authorization URL
         */
        protected String getAuthUrl(final HttpServletRequest request) {
            final String state = UuidUtil.create();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/http/NtlmSspTest.java

        /**
         * Test case for when the 'Authorization' header is missing.
         * Expects the server to respond with a 'WWW-Authenticate: NTLM' header and a 401 status.
         * @throws IOException
         */
        @Test
        public void testAuthenticate_NoAuthorizationHeader() throws IOException {
            // Setup: No "Authorization" header
            when(mockRequest.getHeader("Authorization")).thenReturn(null);
    
            // Execute
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (1)
  4. src/test/java/jcifs/http/NtlmHttpFilterTest.java

            // Initialize filter first
            initializeFilter();
    
            // Test request without Authorization header should challenge client
            when(request.getHeader("Authorization")).thenReturn(null);
            when(httpSession.getAttribute("NtlmHttpAuth")).thenReturn(null);
    
            filter.doFilter(request, response, filterChain);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/RequestCommonTest.kt

      }
    
      @Test
      fun requestToStringRedactsSensitiveHeaders() {
        val headers =
          Headers
            .Builder()
            .add("content-length", "99")
            .add("authorization", "peanutbutter")
            .add("proxy-authorization", "chocolate")
            .add("cookie", "drink=coffee")
            .add("set-cookie", "accessory=sugar")
            .add("user-agent", "OkHttp")
            .build()
        val request =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/security/first-steps.md

        * Но для этого необходима аутентификация для конкретной конечной точки.
        * Поэтому для аутентификации в нашем API он посылает заголовок `Authorization` со значением `Bearer` плюс сам токен.
        * Если токен содержит `foobar`, то содержание заголовка `Authorization` будет таким: `Bearer foobar`.
    
    ## Класс `OAuth2PasswordBearer` в **FastAPI**
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Jan 06 18:26:39 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            if (response == HTTP_UNAUTHORIZED) {
                authHeader = "WWW-Authenticate";
                authProperty = "Authorization";
            } else {
                authHeader = "Proxy-Authenticate";
                authProperty = "Proxy-Authorization";
            }
            String authorization = null;
            final List methods = (List) getHeaderFields0().get(authHeader);
            if (methods == null) {
                return null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  8. docs/recipes.md

                    File("docs/images/logo-square.png").asRequestBody(MEDIA_TYPE_PNG))
                .build()
    
            val request = Request.Builder()
                .header("Authorization", "Client-ID $IMGUR_CLIENT_ID")
                .url("https://api.imgur.com/3/image")
                .post(requestBody)
                .build()
    
            client.newCall(request).execute().use { response ->
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/http/NtlmHttpURLConnection.java

                    authHeader = "WWW-Authenticate";
                    this.authProperty = "Authorization";
                } else {
                    authHeader = "Proxy-Authenticate";
                    this.authProperty = "Proxy-Authorization";
                }
                String authorization = null;
                final List<String> methods = getHeaderFields0().get(authHeader);
                if (methods == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  10. cmd/auth-handler_test.go

    				},
    				Header: http.Header{
    					"Authorization": []string{"Bearer 12313123"},
    				},
    			},
    			authT: authTypeJWT,
    		},
    		// Test case - 3
    		// Empty authorization header.
    		{
    			req: &http.Request{
    				URL: &url.URL{
    					Host:   "127.0.0.1:9000",
    					Scheme: httpScheme,
    					Path:   SlashSeparator,
    				},
    				Header: http.Header{
    					"Authorization": []string{""},
    				},
    			},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 15.4K bytes
    - Viewed (0)
Back to top