Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 494 for bearer (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/org/codelibs/curl/CurlRequestTest.java

            CurlRequest request = new CurlRequest(Method.POST, "https://example.com");
    
            // Add multiple headers
            request.header("Accept", "application/json").header("Content-Type", "application/json").header("Authorization", "Bearer token123")
                    .header("X-Custom-Header", "custom-value");
    
            assertNotNull(request);
        }
    
        @Test
        public void testGzipSetsCompressionToGzip() {
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 24.7K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/security/oauth2-jwt.md

    # パスワード(およびハッシュ化)によるOAuth2、JWTトークンによるBearer { #oauth2-with-password-and-hashing-bearer-with-jwt-tokens }
    
    これでセキュリティの流れが全てわかったので、<abbr title="JSON Web Tokens - JSON Web Token">JWT</abbr>トークンと安全なパスワードのハッシュ化を使用して、実際にアプリケーションを安全にしてみましょう。
    
    このコードは、アプリケーションで実際に使用したり、パスワードハッシュをデータベースに保存するといった用途に利用できます。
    
    本章では、前章の続きから始めて、コードをアップデートしていきます。
    
    ## JWT について { #about-jwt }
    
    JWTとは「JSON Web Tokens」の略称です。
    
    JSONオブジェクトをスペースのない長く密集した文字列で表現したトークンの仕様です。例えば次のようになります:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 14.6K bytes
    - Click Count (1)
  3. internal/grid/grid.go

    		dialer.Timeout = defaultDialTimeout
    		if dial != nil {
    			dialer.NetDial = dial
    		}
    		header := make(http.Header, 2)
    		header.Set("Authorization", "Bearer "+auth())
    		header.Set("X-Minio-Time", strconv.FormatInt(time.Now().UnixNano(), 10))
    
    		if len(header) > 0 {
    			dialer.Header = ws.HandshakeHeaderHTTP(header)
    		}
    		dialer.TLSConfig = tls
    
    		conn, br, _, err := dialer.Dial(ctx, toDial)
    		if br != nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 7K bytes
    - Click Count (0)
  4. docs/zh/docs/tutorial/cors.md

    为此,`:80` 的后端必须有一个「允许的源」列表。
    
    在这种情况下,它必须包含 `http://localhost:8080`,这样 `:8080` 的前端才能正常工作。
    
    ## 通配符 { #wildcards }
    
    也可以使用 `"*"`(一个「通配符」)声明这个列表,表示全部都是允许的。
    
    但这仅允许某些类型的通信,不包括所有涉及凭据的内容:比如 Cookies,以及那些使用 Bearer 令牌的 Authorization 请求头等。
    
    因此,为了一切都能正常工作,最好显式地指定允许的源。
    
    ## 使用 `CORSMiddleware` { #use-corsmiddleware }
    
    你可以在 **FastAPI** 应用中使用 `CORSMiddleware` 来配置它。
    
    * 导入 `CORSMiddleware`。
    * 创建一个允许的源列表(由字符串组成)。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/tutorial/cors.md

    為了達成這點,`:80` 的後端必須有一份「允許的來源」清單。
    
    在此情況下,該清單必須包含 `http://localhost:8080`,` :8080` 的前端才能正確運作。
    
    ## 萬用字元 { #wildcards }
    
    也可以將清單宣告為 `"*"`(「wildcard」萬用字元),表示全部都允許。
    
    但那只會允許某些類型的通訊,凡是涉及憑證(credentials)的都會被排除:例如 Cookie、Authorization 標頭(像 Bearer Token 會用到的)等。
    
    因此,為了讓一切正常運作,最好明確指定被允許的來源。
    
    ## 使用 `CORSMiddleware` { #use-corsmiddleware }
    
    你可以在 **FastAPI** 應用程式中使用 `CORSMiddleware` 來設定:
    
    * 匯入 `CORSMiddleware`。
    * 建立允許的來源清單(字串)。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 5K bytes
    - Click Count (0)
  6. docs/sts/keycloak.md

    The following example shows how to get the details of the user with `{userid}` from `{realm}` realm:
    
    ```
    curl \
      -H "Authorization: Bearer eyJhbGciOiJSUz..." \
      "http://localhost:8080/auth/admin/realms/{realm}/users/{userid}"
    ```
    
    ### Configure MinIO
    
    ```
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/sso/entraid/EntraIdAuthenticator.java

                    }
                    try (CurlResponse response = Curl.post(url)
                            .header("Authorization", "Bearer " + user.getAuthenticationResult().accessToken())
                            .header("Accept", "application/json")
                            .header("Content-type", "application/json")
                            .body("{\"securityEnabledOnly\":false}")
                            .execute()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 08:03:27 GMT 2026
    - 56.8K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/util/SystemUtilTest.java

        public void test_maskSensitiveValue_withAuth() {
            assertEquals("********", SystemUtil.maskSensitiveValue("BASIC_AUTH", "dXNlcjpwYXNz"));
            assertEquals("********", SystemUtil.maskSensitiveValue("auth_header", "Bearer xyz"));
            assertEquals("********", SystemUtil.maskSensitiveValue("OAUTH_CLIENT_ID", "123456"));
        }
    
        @Test
        public void test_maskSensitiveValue_withPrivate() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 17.1K bytes
    - Click Count (0)
  9. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

        @Test
        public void testFilterWithHeaderUpdatesClient() {
            final Client mockNewClient = mock(Client.class);
            final Map<String, String> headers = new HashMap<>();
            headers.put("Authorization", "Bearer token");
    
            when(mockClient.filterWithHeader(headers)).thenReturn(mockNewClient);
    
            final Client result = fesenClient.filterWithHeader(headers);
    
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Mon Jan 12 06:25:38 GMT 2026
    - 16.9K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

        /**
         * Sets the header named [name] to [value]. If this request already has any headers
         * with that name, they are all replaced.
         */
        open fun header(
          name: String,
          value: String,
        ) = apply {
          headers[name] = value
        }
    
        /**
         * Adds a header with [name] and [value]. Prefer this method for multiply-valued
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Oct 30 13:46:58 GMT 2025
    - 14.7K bytes
    - Click Count (1)
Back to Top