Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for SecurityBase (0.04 sec)

  1. fastapi/security/open_id_connect_url.py

    from annotated_doc import Doc
    from fastapi.openapi.models import OpenIdConnect as OpenIdConnectModel
    from fastapi.security.base import SecurityBase
    from starlette.exceptions import HTTPException
    from starlette.requests import Request
    from starlette.status import HTTP_401_UNAUTHORIZED
    
    
    class OpenIdConnect(SecurityBase):
        """
        OpenID Connect authentication class. An instance of it would be used as a
        dependency.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  2. fastapi/security/base.py

    from fastapi.openapi.models import SecurityBase as SecurityBaseModel
    
    
    class SecurityBase:
        model: SecurityBaseModel
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 07 15:12:16 UTC 2018
    - 141 bytes
    - Viewed (0)
  3. fastapi/dependencies/models.py

            unwrapped = _unwrapped_call(self.call)
            return isinstance(unwrapped, SecurityBase)
    
        # Mainly to get the type of SecurityBase, but it's the same self.call
        @cached_property
        def _security_scheme(self) -> SecurityBase:
            unwrapped = _unwrapped_call(self.call)
            assert isinstance(unwrapped, SecurityBase)
            return unwrapped
    
        @cached_property
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/security/first-steps.md

    All the security utilities that integrate with OpenAPI (and the automatic API docs) inherit from `SecurityBase`, that's how **FastAPI** can know how to integrate them in OpenAPI.
    
    ///
    
    ## What it does { #what-it-does }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  5. fastapi/security/api_key.py

    from annotated_doc import Doc
    from fastapi.openapi.models import APIKey, APIKeyIn
    from fastapi.security.base import SecurityBase
    from starlette.exceptions import HTTPException
    from starlette.requests import Request
    from starlette.status import HTTP_401_UNAUTHORIZED
    
    
    class APIKeyBase(SecurityBase):
        def __init__(
            self,
            location: APIKeyIn,
            name: str,
            description: Union[str, None],
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 9.6K bytes
    - Viewed (1)
  6. docs/pt/docs/tutorial/security/first-steps.md

    Todos os utilitários de segurança que se integram com o OpenAPI (e com a documentação automática da API) herdam de `SecurityBase`, é assim que o **FastAPI** sabe como integrá-los ao OpenAPI.
    
    ///
    
    ## O que ele faz { #what-it-does }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/security/first-steps.md

    Todas las utilidades de seguridad que se integran con OpenAPI (y los docs automáticos del API) heredan de `SecurityBase`, así es como **FastAPI** puede saber cómo integrarlas en OpenAPI.
    
    ///
    
    ## Lo que hace { #what-it-does }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/security/first-steps.md

    /// info | 技术细节
    
    **FastAPI** 使用(在依赖项中声明的)类 `OAuth2PasswordBearer` 在 OpenAPI 中定义安全方案,这是因为它继承自 `fastapi.security.oauth2.OAuth2`,而该类又是继承自`fastapi.security.base.SecurityBase`。
    
    所有与 OpenAPI(及 API 文档)集成的安全工具都继承自 `SecurityBase`, 这就是为什么 **FastAPI** 能把它们集成至 OpenAPI 的原因。
    
    ///
    
    ## 实现的操作
    
    FastAPI 校验请求中的 `Authorization` 请求头,核对请求头的值是不是由 `Bearer ` + 令牌组成, 并返回令牌字符串(`str`)。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top