Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for oauth2 (0.03 sec)

  1. fastapi/security/oauth2.py

                client_id=client_id,
                client_secret=client_secret,
            )
    
    
    class OAuth2(SecurityBase):
        """
        This is the base class for OAuth2 authentication, an instance of it would be used
        as a dependency. All other OAuth2 classes inherit from it and customize it for
        each OAuth2 flow.
    
        You normally would not create a new class inheriting from it but use one of the
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 22K bytes
    - Viewed (0)
  2. docs/es/docs/advanced/security/oauth2-scopes.md

    # Scopes de OAuth2 { #oauth2-scopes }
    
    Puedes usar scopes de OAuth2 directamente con **FastAPI**, están integrados para funcionar de manera fluida.
    
    Esto te permitiría tener un sistema de permisos más detallado, siguiendo el estándar de OAuth2, integrado en tu aplicación OpenAPI (y la documentación de la API).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 10:15:01 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/security/simple-oauth2.md

    # Simple OAuth2 con Password y Bearer { #simple-oauth2-with-password-and-bearer }
    
    Ahora vamos a construir a partir del capítulo anterior y agregar las partes faltantes para tener un flujo de seguridad completo.
    
    ## Obtener el `username` y `password` { #get-the-username-and-password }
    
    Vamos a usar las utilidades de seguridad de **FastAPI** para obtener el `username` y `password`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/security/oauth2-jwt.md

    Y puedes usar e implementar protocolos seguros y estándar, como OAuth2 de una manera relativamente simple.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/security/index.md

    OpenID Connect é outra especificação, baseada em **OAuth2**.
    
    Ela é apenas uma extensão do OAuth2 especificando algumas coisas que são relativamente ambíguas no OAuth2, para tentar torná-lo mais interoperável.
    
    Por exemplo, o login do Google usa OpenID Connect (que por baixo dos panos usa OAuth2).
    
    Mas o login do Facebook não tem suporte para OpenID Connect. Ele tem a própria implementação do OAuth2.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 10:17:03 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/security/index.md

    OpenID Connect - это еще один протокол, основанный на **OAuth2**.
    
    Он просто расширяет OAuth2, уточняя некоторые вещи, не имеющие однозначного определения в OAuth2, в попытке сделать его более совместимым.
    
    Например, для входа в Google используется OpenID Connect (который под собой использует OAuth2).
    
    Но вход в Facebook не поддерживает OpenID Connect. У него есть собственная вариация OAuth2.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 11 21:25:03 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/security/index.md

    OpenID Connect es otra especificación, basada en **OAuth2**.
    
    Solo extiende OAuth2 especificando algunas cosas que son relativamente ambiguas en OAuth2, para intentar hacerla más interoperable.
    
    Por ejemplo, el login de Google usa OpenID Connect (que internamente usa OAuth2).
    
    Pero el login de Facebook no soporta OpenID Connect. Tiene su propia versión de OAuth2.
    
    ### OpenID (no "OpenID Connect") { #openid-not-openid-connect }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 10:15:01 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  8. fastapi/openapi/docs.py

                if ((
                  oauth2.auth.schema.get("flow") === "accessCode" ||
                  oauth2.auth.schema.get("flow") === "authorizationCode" ||
                  oauth2.auth.schema.get("flow") === "authorization_code"
                ) && !oauth2.auth.code) {
                    if (!isValid) {
                        oauth2.errCb({
                            authId: oauth2.auth.name,
                            source: "auth",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  9. tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py

                            },
                            "security": [{"OAuth2AuthorizationCodeBearer": []}],
                        }
                    },
                    "/with-oauth2-scheme": {
                        "get": {
                            "summary": "Read With Oauth2 Scheme",
                            "operationId": "read_with_oauth2_scheme_with_oauth2_scheme_get",
                            "responses": {
                                "200": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. tests/test_security_oauth2_optional.py

    from typing import Optional
    
    import pytest
    from fastapi import Depends, FastAPI, Security
    from fastapi.security import OAuth2, OAuth2PasswordRequestFormStrict
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    reusable_oauth2 = OAuth2(
        flows={
            "password": {
                "tokenUrl": "token",
                "scopes": {"read:users": "Read the users", "write:users": "Create users"},
            }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top