Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 1,006 for Security (0.16 seconds)

  1. docs/zh-hant/docs/tutorial/security/first-steps.md

    現在你可以在相依性中傳入 `oauth2_scheme` 與 `Depends` 搭配。
    
    {* ../../docs_src/security/tutorial001_an_py310.py hl[12] *}
    
    此相依性會提供一個 `str`,指派給「路徑操作函式」的參數 `token`。
    
    FastAPI 會知道可以使用這個相依性,在 OpenAPI(以及自動產生的 API 文件)中定義一個「安全性方案」。
    
    /// info | 技術細節
    
    FastAPI 之所以知道可以用(相依性中宣告的)`OAuth2PasswordBearer` 類別,在 OpenAPI 中定義安全性方案,是因為它繼承自 `fastapi.security.oauth2.OAuth2`,而後者又繼承自 `fastapi.security.base.SecurityBase`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/security/first-steps.md

    现在你可以通过 `Depends` 将 `oauth2_scheme` 作为依赖传入。
    
    {* ../../docs_src/security/tutorial001_an_py310.py hl[12] *}
    
    该依赖会提供一个 `str`,赋值给*路径操作函数*的参数 `token`。
    
    **FastAPI** 会据此在 OpenAPI 架构(以及自动生成的 API 文档)中定义一个“安全方案”。
    
    /// info | 技术细节
    
    **FastAPI** 之所以知道可以使用(在依赖中声明的)`OAuth2PasswordBearer` 在 OpenAPI 中定义安全方案,是因为它继承自 `fastapi.security.oauth2.OAuth2`,而后者又继承自 `fastapi.security.base.SecurityBase`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  3. docs/security/security_providers.md

    Security Providers
    ==================
    
    ## Provider Status
    
    | Provider         | HTTP/2  | TLSv1.3      | Powered By      | Notes                                                        |
    | :--------------- | :------ | :----------- | :-------------- | :----------------------------------------------------------- |
    | JVM default      | Java 9+ | Java 11+     | [OpenJDK]       |                                                              |
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 1.7K bytes
    - Click Count (0)
  4. fastapi/security/api_key.py

                Doc(
                    """
                    Security scheme name.
    
                    It will be included in the generated OpenAPI (e.g. visible at `/docs`).
                    """
                ),
            ] = None,
            description: Annotated[
                str | None,
                Doc(
                    """
                    Security scheme description.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 9.6K bytes
    - Click Count (1)
  5. docs_src/security/tutorial005_an_py310.py

    from datetime import datetime, timedelta, timezone
    from typing import Annotated
    
    import jwt
    from fastapi import Depends, FastAPI, HTTPException, Security, status
    from fastapi.security import (
        OAuth2PasswordBearer,
        OAuth2PasswordRequestForm,
        SecurityScopes,
    )
    from jwt.exceptions import InvalidTokenError
    from pwdlib import PasswordHash
    from pydantic import BaseModel, ValidationError
    
    # to get a string like this run:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 18:10:35 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            // Channel
            assertEquals(0, SMBUtil.readInt4(buffer, bodyOffset + 8));
    
            // Security Buffer Offset
            int securityBufferOffset = SMBUtil.readInt2(buffer, bodyOffset + 12);
            assertTrue(securityBufferOffset > 0);
    
            // Security Buffer Length
            assertEquals(token.length, SMBUtil.readInt2(buffer, bodyOffset + 14));
    
            // Previous Session ID
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  7. docs/zh/docs/tutorial/security/simple-oauth2.md

    ### 身份验证 { #authenticate }
    
    点击“Authorize”按钮。
    
    使用以下凭证:
    
    用户名:`johndoe`
    
    密码:`secret`
    
    <img src="/img/tutorial/security/image04.png">
    
    通过身份验证后,显示下图所示的内容:
    
    <img src="/img/tutorial/security/image05.png">
    
    ### 获取当前用户数据 { #get-your-own-user-data }
    
    使用 `/users/me` 路径的 `GET` 操作。
    
    可以提取如下当前用户数据:
    
    ```JSON
    {
      "username": "johndoe",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/dcerpc/msrpc/samr.java

        public static final int SE_GROUP_OWNER = 8;
        /** Security group attribute: Group is used for deny-only checks */
        public static final int SE_GROUP_USE_FOR_DENY_ONLY = 16;
        /** Security group attribute: Domain-local group */
        public static final int SE_GROUP_RESOURCE = 536870912;
        /** Security group attribute: Group represents a logon identifier */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 23.4K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/dcerpc/msrpc/samr.java

        public static final int SE_GROUP_OWNER = 8;
        /** Security group attribute: Group is used for deny-only checks */
        public static final int SE_GROUP_USE_FOR_DENY_ONLY = 16;
        /** Security group attribute: Domain-local group */
        public static final int SE_GROUP_RESOURCE = 536870912;
        /** Security group attribute: Group represents a logon identifier */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 23.1K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    ///
    
    /// info
    
    In this example we use invented custom headers `X-Key` and `X-Token`.
    
    But in real cases, when implementing security, you would get more benefits from using the integrated [Security utilities (the next chapter)](../security/index.md).
    
    ///
    
    ## Dependencies errors and return values { #dependencies-errors-and-return-values }
    
    You can use the same dependency *functions* you use normally.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 2.9K bytes
    - Click Count (0)
Back to Top