Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for apiKey (0.05 sec)

  1. fastapi/openapi/models.py

        trace: Optional[Operation] = None
        servers: Optional[List[Server]] = None
        parameters: Optional[List[Union[Parameter, Reference]]] = None
    
    
    class SecuritySchemeType(Enum):
        apiKey = "apiKey"
        http = "http"
        oauth2 = "oauth2"
        openIdConnect = "openIdConnect"
    
    
    class SecurityBase(BaseModelWithConfig):
        type_: SecuritySchemeType = Field(alias="type")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 22:49:33 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. tests/test_security_api_key_cookie.py

    from fastapi.security import APIKeyCookie
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    api_key = APIKeyCookie(name="key")
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str = Security(api_key)):
        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. tests/test_security_api_key_cookie_description.py

    from fastapi.security import APIKeyCookie
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    api_key = APIKeyCookie(name="key", description="An API Cookie Key")
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str = Security(api_key)):
        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/security/index.md

    **FastAPI** ⚓️ 🔛 **🗄**.
    
    👈 ⚫️❔ ⚒ ⚫️ 💪 ✔️ 💗 🏧 🎓 🧾 🔢, 📟 ⚡, ♒️.
    
    🗄 ✔️ 🌌 🔬 💗 💂‍♂ "⚖".
    
    ⚙️ 👫, 👆 💪 ✊ 📈 🌐 👫 🐩-⚓️ 🧰, 🔌 👉 🎓 🧾 ⚙️.
    
    🗄 🔬 📄 💂‍♂ ⚖:
    
    * `apiKey`: 🈸 🎯 🔑 👈 💪 👟 ⚪️➡️:
        * 🔢 🔢.
        * 🎚.
        * 🍪.
    * `http`: 🐩 🇺🇸🔍 🤝 ⚙️, 🔌:
        * `bearer`: 🎚 `Authorization` ⏮️ 💲 `Bearer ` ➕ 🤝. 👉 😖 ⚪️➡️ Oauth2️⃣.
        * 🇺🇸🔍 🔰 🤝.
        * 🇺🇸🔍 📰, ♒️.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/security/index.md

    Por usá-los, você pode ter vantagens de todas essas ferramentas baseadas nos padrões, incluindo os sistemas de documentação interativa.
    
    OpenAPI define os seguintes esquemas de segurança:
    
    * `apiKey`: uma chave específica de aplicação que pode vir de:
        * Um parâmetro query.
        * Um header.
        * Um cookie.
    * `http`: padrão HTTP de sistemas autenticação, incluindo:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. internal/config/subnet/subnet.go

    	}
    	r.Header.Add("Content-Type", writer.FormDataContentType())
    
    	return c.submitPost(r)
    }
    
    func (c Config) submitPost(r *http.Request) (string, error) {
    	configLock.RLock()
    	r.Header.Set(xhttp.SubnetAPIKey, c.APIKey)
    	configLock.RUnlock()
    	r.Header.Set(xhttp.MinioDeploymentID, xhttp.GlobalDeploymentID)
    
    	client := &http.Client{
    		Timeout:   10 * time.Second,
    		Transport: c.transport,
    	}
    
    	resp, err := client.Do(r)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 27 16:35:36 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/security/index.md

    Таким образом, вы можете воспользоваться преимуществами Всех этих стандартных инструментов, включая интерактивные системы документирования.
    
    OpenAPI может использовать следующие схемы авторизации:
    
    * `apiKey`: уникальный идентификатор для приложения, который может быть получен из:
        * Параметров запроса.
        * Заголовка.
        * Cookies.
    * `http`: стандартные системы аутентификации по протоколу HTTP, включая:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/security/index.md

    Durch deren Verwendung können Sie alle diese Standards-basierten Tools nutzen, einschließlich dieser interaktiven Dokumentationssysteme.
    
    OpenAPI definiert die folgenden Sicherheitsschemas:
    
    * `apiKey`: ein anwendungsspezifischer Schlüssel, der stammen kann von:
        * Einem Query-Parameter.
        * Einem Header.
        * Einem Cookie.
    * `http`: Standard-HTTP-Authentifizierungssysteme, einschließlich:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. 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:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/security/index.md

    **FastAPI** 基于 **OpenAPI**。
    
    这就是使多个自动交互式文档界面,代码生成等成为可能的原因。
    
    OpenAPI 有一种定义多个安全「方案」的方法。
    
    通过使用它们,你可以利用所有这些基于标准的工具,包括这些交互式文档系统。
    
    OpenAPI 定义了以下安全方案:
    
    * `apiKey`:一个特定于应用程序的密钥,可以来自:
        * 查询参数。
        * 请求头。
        * cookie。
    * `http`:标准的 HTTP 身份认证系统,包括:
        * `bearer`: 一个值为 `Bearer` 加令牌字符串的 `Authorization` 请求头。这是从 OAuth2 继承的。
        * HTTP Basic 认证方式。
        * HTTP Digest,等等。
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top