Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for HTTPBasicCredentials (0.07 sec)

  1. tests/test_security_http_basic_realm_description.py

    from base64 import b64encode
    
    from fastapi import FastAPI, Security
    from fastapi.security import HTTPBasic, HTTPBasicCredentials
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPBasic(realm="simple", description="HTTPBasic scheme")
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPBasicCredentials = Security(security)):
        return {"username": credentials.username, "password": credentials.password}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 24 19:03:06 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  2. docs/pt/docs/advanced/security/http-basic-auth.md

    ## HTTP Basic Auth Simples { #simple-http-basic-auth }
    
    * Importe `HTTPBasic` e `HTTPBasicCredentials`.
    * Crie um "esquema `security`" utilizando `HTTPBasic`.
    * Utilize o `security` com uma dependência em sua *operação de rota*.
    * Isso retorna um objeto do tipo `HTTPBasicCredentials`:
        * Isto contém o `username` e o `password` enviado.
    
    {* ../../docs_src/security/tutorial006_an_py39.py hl[4,8,12] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  3. docs/es/docs/advanced/security/http-basic-auth.md

    ## Simple HTTP Basic Auth { #simple-http-basic-auth }
    
    * Importa `HTTPBasic` y `HTTPBasicCredentials`.
    * Crea un "esquema de `security`" usando `HTTPBasic`.
    * Usa ese `security` con una dependencia en tu *path operation*.
    * Devuelve un objeto de tipo `HTTPBasicCredentials`:
      * Contiene el `username` y `password` enviados.
    
    {* ../../docs_src/security/tutorial006_an_py39.py hl[4,8,12] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. docs/ru/docs/advanced/security/http-basic-auth.md

    ## Простой HTTP Basic Auth { #simple-http-basic-auth }
    
    * Импортируйте `HTTPBasic` и `HTTPBasicCredentials`.
    * Создайте «схему» `security` с помощью `HTTPBasic`.
    * Используйте эту `security` как зависимость в вашей *операции пути*.
    * Она возвращает объект типа `HTTPBasicCredentials`:
        * Он содержит отправленные `username` и `password`.
    
    {* ../../docs_src/security/tutorial006_an_py39.py hl[4,8,12] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:37:11 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. docs/de/docs/advanced/security/http-basic-auth.md

    ## Einfaches HTTP Basic Auth { #simple-http-basic-auth }
    
    * Importieren Sie `HTTPBasic` und `HTTPBasicCredentials`.
    * Erstellen Sie mit `HTTPBasic` ein „`security`-Schema“.
    * Verwenden Sie dieses `security` mit einer Abhängigkeit in Ihrer *Pfadoperation*.
    * Diese gibt ein Objekt vom Typ `HTTPBasicCredentials` zurück:
        * Es enthält den gesendeten `username` und das gesendete `password`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/security/http-basic-auth.md

    ## Simple HTTP Basic Auth { #simple-http-basic-auth }
    
    * Import `HTTPBasic` and `HTTPBasicCredentials`.
    * Create a "`security` scheme" using `HTTPBasic`.
    * Use that `security` with a dependency in your *path operation*.
    * It returns an object of type `HTTPBasicCredentials`:
        * It contains the `username` and `password` sent.
    
    {* ../../docs_src/security/tutorial006_an_py39.py hl[4,8,12] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 5K bytes
    - Viewed (0)
Back to top