Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 78 for apikey (0.05 seconds)

  1. tests/test_security_api_key_query_optional.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    app = FastAPI()
    
    api_key = APIKeyQuery(name="key", auto_error=False)
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str | None = Security(api_key)):
        if oauth_header is None:
            return None
        user = User(username=oauth_header)
        return user
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.1K bytes
    - Click Count (0)
  2. tests/test_security_api_key_cookie_optional.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    app = FastAPI()
    
    api_key = APIKeyCookie(name="key", auto_error=False)
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str | None = Security(api_key)):
        if oauth_header is None:
            return None
        user = User(username=oauth_header)
        return user
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.2K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java

            assertNull(exception.getCause());
        }
    
        @Test
        public void test_getType_immutability() {
            // Test that getType returns the same value consistently
            String type = "ApiKey";
            String message = "API key expired";
            InvalidAccessTokenException exception = new InvalidAccessTokenException(type, message);
    
            String firstCall = exception.getType();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/security/index.md

    By using them, you can take advantage of all these standard-based tools, including these interactive documentation systems.
    
    OpenAPI defines the following security schemes:
    
    * `apiKey`: an application specific key that can come from:
        * A query parameter.
        * A header.
        * A cookie.
    * `http`: standard HTTP authentication systems, including:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Aug 31 10:49:48 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/tutorial/security/index.md

    OpenAPI(先前稱為 Swagger)是一套用於構建 API 的開放規範(現為 Linux 基金會的一部分)。
    
    **FastAPI** 建立在 **OpenAPI** 之上。
    
    這使得它能提供多種自動化的互動式文件介面、程式碼產生等功能。
    
    OpenAPI 提供定義多種安全性「方案」。
    
    透過使用它們,你可以善用這些基於標準的工具,包括這些互動式文件系統。
    
    OpenAPI 定義了下列安全性方案:
    
    * `apiKey`:應用程式特定的金鑰,來源可以是:
        * 查詢參數。
        * 標頭(header)。
        * Cookie。
    * `http`:標準的 HTTP 驗證系統,包括:
        * `bearer`:使用 `Authorization` 標頭,值為 `Bearer ` 加上一個 token。這是從 OAuth2 延伸而來。
        * HTTP Basic 驗證。
        * HTTP Digest 等。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/util/SystemUtilTest.java

        }
    
        @Test
        public void test_maskSensitiveValue_withKey() {
            assertEquals("********", SystemUtil.maskSensitiveValue("API_KEY", "abc123"));
            assertEquals("********", SystemUtil.maskSensitiveValue("apikey", "abc123"));
            assertEquals("********", SystemUtil.maskSensitiveValue("PRIVATE_KEY", "-----BEGIN RSA PRIVATE KEY-----"));
        }
    
        @Test
    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)
  7. docs/zh/docs/tutorial/security/index.md

    **FastAPI** 基于 **OpenAPI**。
    
    这就是使多个自动交互式文档界面,代码生成等成为可能的原因。
    
    OpenAPI 有一种定义多个安全「方案」的方法。
    
    通过使用它们,你可以利用所有这些基于标准的工具,包括这些交互式文档系统。
    
    OpenAPI 定义了以下安全方案:
    
    * `apiKey`:一个特定于应用程序的密钥,可以来自:
        * 查询参数。
        * 请求头。
        * cookie。
    * `http`:标准的 HTTP 身份认证系统,包括:
        * `bearer`: 一个值为 `Bearer ` 加令牌字符串的 `Authorization` 请求头。这是从 OAuth2 继承的。
        * HTTP Basic 认证方式。
        * HTTP Digest,等等。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:37:57 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  8. docs/ja/docs/tutorial/security/index.md

    **FastAPI**は、**OpenAPI**をベースにしています。
    
    それが、複数の自動対話型ドキュメント・インターフェースやコード生成などを可能にしているのです。
    
    OpenAPIには、複数のセキュリティ「スキーム」を定義する方法があります。
    
    それらを使用することで、これらの対話型ドキュメントシステムを含む、標準ベースのツールをすべて活用できます。
    
    OpenAPIでは、以下のセキュリティスキームを定義しています:
    
    * `apiKey`: アプリケーション固有のキーで、これらのものから取得できます。
        * クエリパラメータ
        * ヘッダー
        * クッキー
    * `http`: 標準的なHTTP認証システムで、これらのものを含みます。
        * `bearer`: ヘッダ `Authorization` の値が `Bearer ` で、トークンが含まれます。これはOAuth2から継承しています。
        * HTTP Basic認証
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 15:24:30 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  9. internal/kms/config.go

    			rootCAs, err = certs.GetRootCAs(opts.CADir)
    			if err != nil {
    				return nil, err
    			}
    		}
    
    		client, err := kms.NewClient(&kms.Config{
    			Endpoints: endpoints,
    			APIKey:    key,
    			TLS: &tls.Config{
    				MinVersion:         tls.VersionTLS12,
    				ClientSessionCache: tls.NewLRUClientSessionCache(tlsClientSessionCacheSize),
    				RootCAs:            rootCAs,
    			},
    		})
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 15K bytes
    - Click Count (0)
  10. internal/config/subnet/help.go

    			Optional:    true,
    			Sensitive:   true,
    		},
    		config.HelpKV{
    			Key:         config.APIKey,
    			Type:        "string",
    			Description: "Enterprise license API key for the cluster" + defaultHelpPostfix(config.APIKey),
    			Optional:    true,
    			Sensitive:   true,
    		},
    		config.HelpKV{
    			Key:         config.Proxy,
    			Type:        "string",
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Jul 10 20:16:44 GMT 2024
    - 1.7K bytes
    - Click Count (0)
Back to Top