Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for beggarer (0.18 sec)

  1. docs/zh/docs/tutorial/cors.md

    为此,后端必须有一个「允许的源」列表。
    
    在这种情况下,它必须包含 `http://localhost:8080`,前端才能正常工作。
    
    ## 通配符
    
    也可以使用 `"*"`(一个「通配符」)声明这个列表,表示全部都是允许的。
    
    但这仅允许某些类型的通信,不包括所有涉及凭据的内容:像 Cookies 以及那些使用 Bearer 令牌的授权 headers 等。
    
    因此,为了一切都能正常工作,最好显式地指定允许的源。
    
    ## 使用 `CORSMiddleware`
    
    你可以在 **FastAPI** 应用中使用 `CORSMiddleware` 来配置它。
    
    * 导入 `CORSMiddleware`。
    * 创建一个允许的源列表(由字符串组成)。
    * 将其作为「中间件」添加到你的 **FastAPI** 应用中。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 27 17:28:07 GMT 2021
    - 4.5K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/cors.md

    これを実現するには、バックエンドに「許可されたオリジン」のリストがなければなりません。
    
    この場合、フロントエンドを正しく機能させるには、そのリストに `http://localhost:8080` を含める必要があります。
    
    ## ワイルドカード
    
    リストを `"*"` (ワイルドカード) と宣言して、すべてを許可することもできます。
    
    ただし、Bearer Tokenで使用されるような認証ヘッダーやCookieなどのクレデンシャル情報に関するものを除いて、特定の種類の通信のみが許可されます。
    
    したがって、すべてを正しく機能させるために、許可されたオリジンの明示的な指定をお勧めします。
    
    ## `CORSMiddleware` の使用
    
    **FastAPI** アプリケーションでは `CORSMiddleware` を使用して、CORSに関する設定ができます。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Oct 18 06:02:19 GMT 2020
    - 6.3K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/security/first-steps.md

        * But it needs authentication for that specific endpoint.
        * So, to authenticate with our API, it sends a header `Authorization` with a value of `Bearer ` plus the token.
        * If the token contains `foobar`, the content of the `Authorization` header would be: `Bearer foobar`.
    
    ## **FastAPI**'s `OAuth2PasswordBearer`
    
    **FastAPI** provides several tools, at different levels of abstraction, to implement these security features.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/security/simple-oauth2.md

    ```Python hl_lines="58-67  69-72  90"
    {!../../../docs_src/security/tutorial003.py!}
    ```
    
    !!! info "说明"
    
        此处返回值为 `Bearer` 的响应头 `WWW-Authenticate` 也是规范的一部分。
    
        任何 401**UNAUTHORIZED**HTTP(错误)状态码都应返回 `WWW-Authenticate` 响应头。
    
        本例中,因为使用的是 Bearer Token,该响应头的值应为 `Bearer`。
    
        实际上,忽略这个附加响应头,也不会有什么问题。
    
        之所以在此提供这个附加响应头,是为了符合规范的要求。
    
        说不定什么时候,就有工具用得上它,而且,开发者或用户也可能用得上。
    
        这就是遵循标准的好处……
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/security/first-steps.md

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

        * Параметров запроса.
        * Заголовка.
        * Cookies.
    * `http`: стандартные системы аутентификации по протоколу HTTP, включая:
        * `bearer`: заголовок `Authorization` со значением `Bearer {уникальный токен}`. Это унаследовано от OAuth2.
        * Базовая аутентификация по протоколу HTTP.
        * HTTP Digest и т.д.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Aug 02 15:14:19 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  7. docs/fa/docs/tutorial/security/index.md

    * شیوه `apiKey`: یک کلید اختصاصی برای برنامه که می‌تواند از موارد زیر استفاده شود:
        * پارامتر جستجو.
        * هدر.
        * کوکی.
    * شیوه `http`: سیستم‌های استاندارد احراز هویت HTTP، از جمله:
        * مقدار `bearer`: یک هدر `Authorization` با مقدار `Bearer` به همراه یک توکن. این از OAuth2 به ارث برده شده است.
        * احراز هویت پایه HTTP.
        * ویژگی HTTP Digest و غیره.
    * شیوه `oauth2`: تمام روش‌های OAuth2 برای مدیریت امنیت (به نام "flows").
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 23 15:06:11 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/security/simple-oauth2.md

        {!> ../../../docs_src/security/tutorial003_py310.py!}
        ```
    
    !!! info
        🌖 🎚 `WWW-Authenticate` ⏮️ 💲 `Bearer` 👥 🛬 📥 🍕 🔌.
    
        🙆 🇺🇸🔍 (❌) 👔 📟 4️⃣0️⃣1️⃣ "⛔" 🤔 📨 `WWW-Authenticate` 🎚.
    
        💼 📨 🤝 (👆 💼), 💲 👈 🎚 🔜 `Bearer`.
    
        👆 💪 🤙 🚶 👈 ➕ 🎚 & ⚫️ 🔜 👷.
    
        ✋️ ⚫️ 🚚 📥 🛠️ ⏮️ 🔧.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/security/oauth2-jwt.md

    # OAuth2 with Password (and hashing), Bearer with JWT tokens
    
    Now that we have all the security flow, let's make the application actually secure, using <abbr title="JSON Web Tokens">JWT</abbr> tokens and secure password hashing.
    
    This code is something you can actually use in your application, save the password hashes in your database, etc.
    
    We are going to start from where we left in the previous chapter and increment it.
    
    ## About JWT
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/security/oauth2-jwt.md

    # パスワード(およびハッシュ化)によるOAuth2、JWTトークンによるBearer
    
    これでセキュリティの流れが全てわかったので、<abbr title="JSON Web Tokens">JWT</abbr>トークンと安全なパスワードのハッシュ化を使用して、実際にアプリケーションを安全にしてみましょう。
    
    このコードは、アプリケーションで実際に使用したり、パスワードハッシュをデータベースに保存するといった用途に利用できます。
    
    本章では、前章の続きから始めて、コードをアップデートしていきます。
    
    ## JWT について
    
    JWTとは「JSON Web Tokens」の略称です。
    
    JSONオブジェクトをスペースのない長く密集した文字列で表現したトークンの仕様です。例えば次のようになります:
    
    ```
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 14.1K bytes
    - Viewed (0)
Back to top