Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for authorization (0.05 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.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: Sat Aug 16 09:39:51 UTC 2025
    - 19K bytes
    - Viewed (0)
  2. 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)
  3. src/main/java/org/codelibs/fess/sso/aad/AzureAdAuthenticator.java

            }).orElse(null);
        }
    
        /**
         * Generates the Azure AD authorization URL for the authentication request.
         * @param request The HTTP servlet request.
         * @return The authorization URL to redirect the user to.
         */
        protected String getAuthUrl(final HttpServletRequest request) {
            final String state = UuidUtil.create();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 28 09:13:08 UTC 2025
    - 37.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/it/ITBase.java

        }
    
        protected static RequestSpecification checkMethodBase(final Map<String, Object> body) {
            return given().contentType("application/json")
                    .header("Authorization", getTestToken())
                    .body(body, ObjectMapperType.JACKSON_2)
                    .when();
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt

          }
    
        val file = File("docs/images/logo-square.png")
        val requestBody: RequestBody = file.asRequestBody(MEDIA_TYPE_PNG)
    
        val request =
          Request
            .Builder()
            .header("Authorization", "Client-ID $IMGUR_CLIENT_ID")
            .url("https://api.imgur.com/3/image")
            .post(ProgressRequestBody(requestBody, progressListener))
            .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
    - 3.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/FessApiAction.java

         */
        @Override
        protected OptionalThing<LoginManager> myLoginManager() {
            return OptionalThing.empty();
        }
    
        /**
         * Pre-processes API requests by checking access authorization before executing the action.
         * If access is not allowed, returns an unauthorized error response.
         *
         * @param runtime the action runtime context containing request information
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java

    import jakarta.servlet.ServletContext;
    
    /**
     * Base action class for admin pages in Fess.
     * <p>
     * This abstract class provides common functionality for all admin actions,
     * including authentication, authorization, and HTML data setup.
     * </p>
     *
     */
    public abstract class FessAdminAction extends FessBaseAction {
    
        /** Constant suffix for view names. */
        public static final String VIEW = "-view";
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  8. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourcesHttpTest.kt

          if (response.code == 401) {
            assertThat(response.body.string()).isEqualTo("{\"error\":{\"message\":\"No auth credentials found\",\"code\":401}}")
            request = request.newBuilder().header("Authorization", "XYZ").build()
          } else {
            response.processEventSource(listener)
            listener.assertOpen()
            listener.assertEvent(null, null, "hey")
            listener.assertClose()
          }
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 13:49:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java

            }
          }
        };
    
        RequestBody requestBody = RequestBody.create(
          new File("docs/images/logo-square.png"),
          MEDIA_TYPE_PNG);
    
        Request request = new Request.Builder()
          .header("Authorization", "Client-ID " + IMGUR_CLIENT_ID)
          .url("https://api.imgur.com/3/image")
          .post(new ProgressRequestBody(requestBody, progressListener))
          .build();
    
        Response response = client.newCall(request).execute();
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (1)
  10. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

      @Test
      fun sseReauths() {
        client =
          client
            .newBuilder()
            .authenticator { route, response ->
              response.request
                .newBuilder()
                .header("Authorization", "XYZ")
                .build()
            }.build()
        server.enqueue(
          MockResponse(
            code = 401,
            body = "{\"error\":{\"message\":\"No auth credentials found\",\"code\":401}}",
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top