Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for current_user (0.42 sec)

  1. docs/en/docs/tutorial/dependencies/index.md

    ```mermaid
    graph TB
    
    current_user(["current_user"])
    active_user(["active_user"])
    admin_user(["admin_user"])
    paying_user(["paying_user"])
    
    public["/items/public/"]
    private["/items/private/"]
    activate_user["/users/{user_id}/activate"]
    pro_items["/items/pro/"]
    
    current_user --> active_user
    active_user --> admin_user
    active_user --> paying_user
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/security/get-current-user.md

    So now we can use the same `Depends` with our `get_current_user` in the *path operation*:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *}
    
    Notice that we declare the type of `current_user` as the Pydantic model `User`.
    
    This will help us inside of the function with all the completion and type checks.
    
    /// tip
    
    You might remember that request bodies are also declared with Pydantic models.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/security/simple-oauth2.md

    For the rest, **FastAPI** handles it for you.
    
    ///
    
    ## Update the dependencies { #update-the-dependencies }
    
    Now we are going to update our dependencies.
    
    We want to get the `current_user` *only* if this user is active.
    
    So, we create an additional dependency `get_current_active_user` that in turn uses `get_current_user` as a dependency.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java

            shareInfo502.netname = "TestShare";
            shareInfo502.type = 1;
            shareInfo502.remark = "Test Remark";
            shareInfo502.permissions = 2;
            shareInfo502.max_uses = 10;
            shareInfo502.current_uses = 5;
            shareInfo502.path = "C:\\test";
            shareInfo502.password = "password";
            shareInfo502.sd_size = 2;
            shareInfo502.security_descriptor = new byte[] { 1, 2 };
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/dcerpc/msrpc/srvsvc.java

            /**
             * The maximum number of concurrent connections.
             */
            public int max_uses;
            /**
             * The current number of connections.
             */
            public int current_uses;
            /**
             * The local path of the share.
             */
            public String path;
            /**
             * The share password (if any).
             */
            public String password;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/msrpc/srvsvc.java

            /**
             * The maximum number of concurrent connections.
             */
            public int max_uses;
            /**
             * The current number of connections.
             */
            public int current_uses;
            /**
             * The local path of the share.
             */
            public String path;
            /**
             * The share password (if any).
             */
            public String password;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 27K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

            assertNull(info502.security_descriptor);
            assertEquals(0, info502.type);
            assertEquals(0, info502.permissions);
            assertEquals(0, info502.max_uses);
            assertEquals(0, info502.current_uses);
            assertEquals(0, info502.sd_size);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  8. docs/en/docs/release-notes.md

    ```Python
    CurrentUser = Annotated[User, Depends(get_current_user)]
    ```
    
    And then you can reuse this `Annotated` dependency:
    
    ```Python
    CurrentUser = Annotated[User, Depends(get_current_user)]
    
    
    @app.get("/items/")
    def read_items(user: CurrentUser):
        ...
    
    
    @app.post("/items/")
    def create_item(user: CurrentUser, item: Item):
        ...
    
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
Back to top