Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 203 for beraber (0.17 sec)

  1. fastapi/security/api_key.py

                    It is also useful when you want to have authentication that can be
                    provided in one of multiple optional ways (for example, in a query
                    parameter or in an HTTP Bearer token).
                    """
                ),
            ] = True,
        ):
            self.model: APIKey = APIKey(
                **{"in": APIKeyIn.query},  # type: ignore[arg-type]
                name=name,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 23 22:29:18 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. tests/test_security_oauth2_optional.py

        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_oauth2():
        response = client.get("/users/me", headers={"Authorization": "Bearer footokenbar"})
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "Bearer footokenbar"}
    
    
    def test_security_oauth2_password_other_header():
        response = client.get("/users/me", headers={"Authorization": "Other footokenbar"})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/security/first-steps.md

        * したがって、APIで認証するため、HTTPヘッダー`Authorization`に`Bearer`の文字列とトークンを加えた値を送信します。
        * トークンに`foobar`が含まれている場合、`Authorization`ヘッダーの内容は次のようになります: `Bearer foobar`。
    
    ## **FastAPI**の`OAuth2PasswordBearer`
    
    **FastAPI**は、これらのセキュリティ機能を実装するために、抽象度の異なる複数のツールを提供しています。
    
    この例では、**Bearer**トークンを使用して**OAuth2**を**パスワード**フローで使用します。これには`OAuth2PasswordBearer`クラスを使用します。
    
    !!! info "情報"
        「bearer」トークンが、唯一の選択肢ではありません。
    
        しかし、私たちのユースケースには最適です。
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/security/index.md

        * Einem Query-Parameter.
        * Einem Header.
        * Einem Cookie.
    * `http`: Standard-HTTP-Authentifizierungssysteme, einschließlich:
        * `bearer`: ein Header `Authorization` mit dem Wert `Bearer` plus einem Token. Dies wird von OAuth2 geerbt.
        * HTTP Basic Authentication.
        * HTTP Digest, usw.
    * `oauth2`: Alle OAuth2-Methoden zum Umgang mit Sicherheit (genannt „Flows“).
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:09:35 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/security/index.md

        * Параметров запроса.
        * Заголовка.
        * Cookies.
    * `http`: стандартные системы аутентификации по протоколу HTTP, включая:
        * `bearer`: заголовок `Authorization` со значением `Bearer {уникальный токен}`. Это унаследовано от OAuth2.
        * Базовая аутентификация по протоколу HTTP.
        * HTTP Digest и т.д.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Aug 02 15:14:19 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  6. pkg/kubeapiserver/authenticator/config.go

    				Name:        "authorization",
    				In:          "header",
    				Description: "Bearer Token authentication",
    			},
    		}
    		securitySchemesV3["BearerToken"] = &spec3.SecurityScheme{
    			SecuritySchemeProps: spec3.SecuritySchemeProps{
    				Type:        "apiKey",
    				Name:        "authorization",
    				In:          "header",
    				Description: "Bearer Token authentication",
    			},
    		}
    	}
    
    	if len(authenticators) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. tests/test_security_oauth2.py

        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_oauth2():
        response = client.get("/users/me", headers={"Authorization": "Bearer footokenbar"})
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "Bearer footokenbar"}
    
    
    def test_security_oauth2_password_other_header():
        response = client.get("/users/me", headers={"Authorization": "Other footokenbar"})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. tests/test_security_oauth2_optional_description.py

        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_oauth2():
        response = client.get("/users/me", headers={"Authorization": "Bearer footokenbar"})
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "Bearer footokenbar"}
    
    
    def test_security_oauth2_password_other_header():
        response = client.get("/users/me", headers={"Authorization": "Other footokenbar"})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. cluster/common.sh

    }
    
    # Get the bearer token for the current-context in kubeconfig if one exists.
    # Assumed vars:
    #   KUBECONFIG  # if unset, defaults to global
    #   KUBE_CONTEXT  # if unset, defaults to current-context
    #
    # Vars set:
    #   KUBE_BEARER_TOKEN
    #
    # KUBE_BEARER_TOKEN will be empty if no current-context is set, or the
    # current-context user does not exist or contain a bearer token entry.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 17 15:36:33 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/security/simple-oauth2.md

        {!> ../../../docs_src/security/tutorial003_py310.py!}
        ```
    
    !!! info
        🌖 🎚 `WWW-Authenticate` ⏮️ 💲 `Bearer` 👥 🛬 📥 🍕 🔌.
    
        🙆 🇺🇸🔍 (❌) 👔 📟 4️⃣0️⃣1️⃣ "⛔" 🤔 📨 `WWW-Authenticate` 🎚.
    
        💼 📨 🤝 (👆 💼), 💲 👈 🎚 🔜 `Bearer`.
    
        👆 💪 🤙 🚶 👈 ➕ 🎚 & ⚫️ 🔜 👷.
    
        ✋️ ⚫️ 🚚 📥 🛠️ ⏮️ 🔧.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top