Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 695 for Token (0.07 seconds)

  1. docs/zh/docs/tutorial/security/first-steps.md

    /// tip | 提示
    
    这里的 `tokenUrl="token"` 指向的是尚未创建的相对 URL `token`,等价于 `./token`。
    
    因为使用的是相对 URL,若你的 API 位于 `https://example.com/`,它将指向 `https://example.com/token`;若你的 API 位于 `https://example.com/api/v1/`,它将指向 `https://example.com/api/v1/token`。
    
    使用相对 URL 很重要,这能确保你的应用在诸如[使用代理](../../advanced/behind-a-proxy.md)等高级用例中依然正常工作。
    
    ///
    
    这个参数不会创建该端点/*路径操作*,而是声明客户端应使用 `/token` 这个 URL 来获取令牌。这些信息会用于 OpenAPI,进而用于交互式 API 文档系统。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  2. fastapi/security/http.py

                bool,
                Doc(
                    """
                    By default, if the HTTP Bearer token is not provided (in an
                    `Authorization` header), `HTTPBearer` will automatically cancel the
                    request and send the client an error.
    
                    If `auto_error` is set to `False`, when the HTTP Bearer token
                    is not available, instead of erroring out, the dependency result will
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 16 10:16:48 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/header-params.md

    有時可能會收到重複的標頭,也就是同一個標頭會有多個值。
    
    可以在型別宣告中使用 list 來定義這種情況。
    
    你會以 Python 的 `list` 形式收到該重複標頭的所有值。
    
    例如,要宣告可以出現多次的 `X-Token` 標頭,可以這樣寫:
    
    {* ../../docs_src/header_params/tutorial003_an_py310.py hl[9] *}
    
    如果你在與該*路徑操作 (path operation)* 溝通時送出兩個 HTTP 標頭如下:
    
    ```
    X-Token: foo
    X-Token: bar
    ```
    
    回應會像這樣:
    
    ```JSON
    {
        "X-Token values": [
            "bar",
            "foo"
        ]
    }
    ```
    
    ## 小結 { #recap }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  4. src/test/java/jcifs/spnego/SpnegoTokenTest.java

                return tok == null ? new byte[0] : tok;
            }
    
            @Override
            protected void parse(byte[] token) throws IOException {
                if (token == null) {
                    throw new IOException("token is null");
                }
                setMechanismToken(token);
                this.parsed = true;
            }
    
            boolean isParsed() {
                return parsed;
            }
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  5. docs/site-replication/gen-oidc-sts-cred.go

    	if err != nil {
    		log.Fatalf("Failed to generate OIDC token: %v", err)
    	}
    
    	roleARN := os.Getenv("ROLE_ARN")
    	webID := cr.STSWebIdentity{
    		Client:      &http.Client{},
    		STSEndpoint: endpoint,
    		GetWebIDTokenExpiry: func() (*cr.WebIdentityToken, error) {
    			return &cr.WebIdentityToken{
    				Token: oidcToken,
    			}, nil
    		},
    		RoleARN: roleARN,
    	}
    
    	value, err := webID.Retrieve()
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Apr 29 01:27:09 GMT 2022
    - 2.3K bytes
    - Click Count (1)
  6. docs/zh-hant/docs/tutorial/security/get-current-user.md

    記得依賴可以有子依賴嗎?
    
    `get_current_user` 會依賴我們先前建立的相同 `oauth2_scheme`。
    
    如同先前在*路徑操作*中直接做的一樣,新的依賴 `get_current_user` 會從子依賴 `oauth2_scheme` 接收一個作為 `str` 的 `token`:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[25] *}
    
    ## 取得使用者 { #get-the-user }
    
    `get_current_user` 會使用我們建立的(假的)工具函式,它接收一個作為 `str` 的 token,並回傳我們的 Pydantic `User` 模型:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *}
    
    ## 注入目前使用者 { #inject-the-current-user }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  7. docs/ja/docs/tutorial/header-params.md

    これらの場合、型宣言でリストを使用して定義することができます。
    
    重複したヘッダーのすべての値をPythonの`list`として受け取ることができます。
    
    例えば、複数回出現する可能性のある`X-Token`のヘッダを定義するには、以下のように書くことができます:
    
    {* ../../docs_src/header_params/tutorial003_an_py310.py hl[9] *}
    
    その*path operation*と通信する際に、次のように2つのHTTPヘッダーを送信する場合:
    
    ```
    X-Token: foo
    X-Token: bar
    ```
    
    レスポンスは以下のようになります:
    
    ```JSON
    {
        "X-Token values": [
            "bar",
            "foo"
        ]
    }
    ```
    
    ## まとめ { #recap }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 16:44:21 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/config/WebAuthenticationConfig.java

         * <li>token_url - URL to request the token from</li>
         * <li>token_pattern - Regex pattern to extract the token</li>
         * <li>token_name - Name of the token parameter</li>
         * <li>token_method - HTTP method for token request (GET or POST)</li>
         * <li>token_parameters - Parameters for token request</li>
         * <li>login_url - URL for login request</li>
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Fri Jan 09 23:46:52 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizer.java

            while (true) {
                final MyToken token = que.poll();
                if (token == null) {
                    return null;
                }
                if (prev == null || !prev.identical(token)) {
                    return token;
                }
            }
        }
    
        void consultDictionary() throws IOException {
            if (synonymMap == null) {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 15 06:51:20 GMT 2025
    - 17K bytes
    - Click Count (0)
  10. fastapi/security/oauth2.py

        """
        OAuth2 flow for authentication using a bearer token obtained with an OAuth2 code
        flow. An instance of it would be used as a dependency.
        """
    
        def __init__(
            self,
            authorizationUrl: str,
            tokenUrl: Annotated[
                str,
                Doc(
                    """
                    The URL to obtain the OAuth2 token.
                    """
                ),
            ],
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Mar 24 16:32:10 GMT 2026
    - 23.6K bytes
    - Click Count (0)
Back to Top