Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 56 of 56 for OAuth2PasswordBearer (0.1 sec)

  1. docs/pt/docs/tutorial/security/simple-oauth2.md

    * Um `client_secret` opcional (não precisamos dele em nosso exemplo).
    
    /// info | Informação
    
    O `OAuth2PasswordRequestForm` não é uma classe especial para **FastAPI** como é `OAuth2PasswordBearer`.
    
    `OAuth2PasswordBearer` faz com que **FastAPI** saiba que é um esquema de segurança. Portanto, é adicionado dessa forma ao OpenAPI.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 31 12:17:45 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/security/simple-oauth2.md

    * An optional `client_secret` (we don't need it for our example).
    
    /// info
    
    The `OAuth2PasswordRequestForm` is not a special class for **FastAPI** as is `OAuth2PasswordBearer`.
    
    `OAuth2PasswordBearer` makes **FastAPI** know that it is a security scheme. So it is added that way to OpenAPI.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/security/simple-oauth2.md

    * Ein optionales `client_secret` (benötigen wir für unser Beispiel nicht).
    
    /// info
    
    `OAuth2PasswordRequestForm` ist keine spezielle Klasse für **FastAPI**, so wie `OAuth2PasswordBearer`.
    
    `OAuth2PasswordBearer` lässt **FastAPI** wissen, dass es sich um ein Sicherheitsschema handelt. Daher wird es auf diese Weise zu OpenAPI hinzugefügt.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/security/simple-oauth2.md

    ///
    
    * 可选的 `client_id`(本例未使用)
    * 可选的 `client_secret`(本例未使用)
    
    /// info | "说明"
    
    `OAuth2PasswordRequestForm` 与 `OAuth2PasswordBearer` 一样,都不是 FastAPI 的特殊类。
    
    **FastAPI** 把 `OAuth2PasswordBearer` 识别为安全方案。因此,可以通过这种方式把它添加至 OpenAPI。
    
    但 `OAuth2PasswordRequestForm` 只是可以自行编写的类依赖项,也可以直接声明 `Form` 参数。
    
    但由于这种用例很常见,FastAPI 为了简便,就直接提供了对它的支持。
    
    ///
    
    ### 使用表单数据
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/security/simple-oauth2.md

    ///
    
    * `client_id`(선택적으로 사용) (예제에서는 필요하지 않습니다).
    * `client_secret`(선택적으로 사용) (예제에서는 필요하지 않습니다).
    
    /// 정보
    
    `OAuth2PasswordRequestForm`은 `OAuth2PasswordBearer`와 같이 **FastAPI**에 대한 특수 클래스가 아닙니다.
    
    `OAuth2PasswordBearer`는 **FastAPI**가 보안 체계임을 알도록 합니다. 그래서 OpenAPI에 그렇게 추가됩니다.
    
    그러나 `OAuth2PasswordRequestForm`은 직접 작성하거나 `Form` 매개변수를 직접 선언할 수 있는 클래스 의존성일 뿐입니다.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. fastapi/security/oauth2.py

                        status_code=HTTP_403_FORBIDDEN, detail="Not authenticated"
                    )
                else:
                    return None
            return authorization
    
    
    class OAuth2PasswordBearer(OAuth2):
        """
        OAuth2 flow for authentication using a bearer token obtained with a password.
        An instance of it would be used as a dependency.
    
        Read more about it in the
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top