Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 49 of 49 for isActive (0.12 sec)

  1. docs_src/security/tutorial005_py39.py

        return user
    
    
    async def get_current_active_user(
        current_user: User = Security(get_current_user, scopes=["me"]),
    ):
        if current_user.disabled:
            raise HTTPException(status_code=400, detail="Inactive user")
        return current_user
    
    
    @app.post("/token")
    async def login_for_access_token(
        form_data: OAuth2PasswordRequestForm = Depends(),
    ) -> Token:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. docs_src/security/tutorial005.py

        return user
    
    
    async def get_current_active_user(
        current_user: User = Security(get_current_user, scopes=["me"]),
    ):
        if current_user.disabled:
            raise HTTPException(status_code=400, detail="Inactive user")
        return current_user
    
    
    @app.post("/token")
    async def login_for_access_token(
        form_data: OAuth2PasswordRequestForm = Depends(),
    ) -> Token:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. docs_src/security/tutorial005_an.py

    
    async def get_current_active_user(
        current_user: Annotated[User, Security(get_current_user, scopes=["me"])],
    ):
        if current_user.disabled:
            raise HTTPException(status_code=400, detail="Inactive user")
        return current_user
    
    
    @app.post("/token")
    async def login_for_access_token(
        form_data: Annotated[OAuth2PasswordRequestForm, Depends()],
    ) -> Token:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. docs_src/security/tutorial005_an_py310.py

    
    async def get_current_active_user(
        current_user: Annotated[User, Security(get_current_user, scopes=["me"])],
    ):
        if current_user.disabled:
            raise HTTPException(status_code=400, detail="Inactive user")
        return current_user
    
    
    @app.post("/token")
    async def login_for_access_token(
        form_data: Annotated[OAuth2PasswordRequestForm, Depends()],
    ) -> Token:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. docs_src/security/tutorial005_an_py39.py

    
    async def get_current_active_user(
        current_user: Annotated[User, Security(get_current_user, scopes=["me"])],
    ):
        if current_user.disabled:
            raise HTTPException(status_code=400, detail="Inactive user")
        return current_user
    
    
    @app.post("/token")
    async def login_for_access_token(
        form_data: Annotated[OAuth2PasswordRequestForm, Depends()],
    ) -> Token:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/SettingsScriptExecutionIntegrationTest.groovy

    @Requires(UnitTestPreconditions.NotJava8OnMacOs)
    class SettingsScriptExecutionIntegrationTest extends AbstractIntegrationSpec {
        @Requires(IntegTestPreconditions.AnyActiveFeature)
        def "emits deprecation warnings when enabling inactive #feature feature"() {
            given:
            settingsFile << """
                enableFeaturePreview('$feature')
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/container_manager.go

    	// GetDevicePluginResourceCapacity returns the node capacity (amount of total device plugin resources),
    	// node allocatable (amount of total healthy resources reported by device plugin),
    	// and inactive device plugin resources previously registered on the node.
    	GetDevicePluginResourceCapacity() (v1.ResourceList, v1.ResourceList, []string)
    
    	// UpdateQOSCgroups performs housekeeping updates to ensure that the top
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:13 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/security/simple-oauth2.md

    ```
    
    ### ๐Ÿ”• ๐Ÿ‘ฉโ€๐Ÿ’ป
    
    ๐Ÿ”œ ๐Ÿ”„ โฎ๏ธ ๐Ÿ”• ๐Ÿ‘ฉโ€๐Ÿ’ป, ๐Ÿ”“ โฎ๏ธ:
    
    ๐Ÿ‘ฉโ€๐Ÿ’ป: `alice`
    
    ๐Ÿ”: `secret2`
    
    &amp; ๐Ÿ”„ โš™๏ธ ๐Ÿ› ๏ธ `GET` โฎ๏ธ โžก `/users/me`.
    
    ๐Ÿ‘† ๐Ÿ”œ ๐Ÿคš "๐Ÿ”• ๐Ÿ‘ฉโ€๐Ÿ’ป" โŒ, ๐Ÿ’–:
    
    ```JSON
    {
      "detail": "Inactive user"
    }
    ```
    
    ## ๐ŸŒƒ
    
    ๐Ÿ‘† ๐Ÿ”œ โœ”๏ธ ๐Ÿงฐ ๐Ÿ› ๏ธ ๐Ÿ ๐Ÿ’‚โ€โ™‚ โš™๏ธ โš“๏ธ ๐Ÿ”› `username` &amp; `password` ๐Ÿ‘† ๐Ÿ› ๏ธ.
    
    โš™๏ธ ๐Ÿ‘ซ ๐Ÿงฐ, ๐Ÿ‘† ๐Ÿ’ช โš’ ๐Ÿ’‚โ€โ™‚ โš™๏ธ ๐Ÿ”— โฎ๏ธ ๐Ÿ™† ๐Ÿ’ฝ &amp; โฎ๏ธ ๐Ÿ™† ๐Ÿ‘ฉโ€๐Ÿ’ป โš–๏ธ ๐Ÿ’ฝ ๐Ÿท.
    
    ๐Ÿ•ด โ„น โŒ ๐Ÿ‘ˆ โšซ๏ธ ๐Ÿšซ ๐Ÿค™ "๐Ÿ”".
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/security/simple-oauth2.md

    }
    ```
    
    ### ๆœชๆฟ€ๆดป็”จๆˆท
    
    ๆต‹่ฏ•ๆœชๆฟ€ๆดป็”จๆˆท๏ผŒ่พ“ๅ…ฅไปฅไธ‹ไฟกๆฏ๏ผŒ่ฟ›่กŒ่บซไปฝ้ชŒ่ฏ๏ผš
    
    ็”จๆˆทๅ๏ผš`alice`
    
    ๅฏ†็ ๏ผš`secret2`
    
    ็„ถๅŽ๏ผŒๆ‰ง่กŒ `/users/me` ่ทฏๅพ„็š„ `GET` ๆ“ไฝœใ€‚
    
    ๆ˜พ็คบไธ‹ๅˆ—**ๆœชๆฟ€ๆดป็”จๆˆท**้”™่ฏฏไฟกๆฏ๏ผš
    
    ```JSON
    {
      "detail": "Inactive user"
    }
    ```
    
    ## ๅฐ็ป“
    
    ไฝฟ็”จๆœฌ็ซ ็š„ๅทฅๅ…ทๅฎž็ŽฐๅŸบไบŽ `username` ๅ’Œ `password` ็š„ๅฎŒๆ•ด API ๅฎ‰ๅ…จ็ณป็ปŸใ€‚
    
    ่ฟ™ไบ›ๅทฅๅ…ท่ฎฉๅฎ‰ๅ…จ็ณป็ปŸๅ…ผๅฎนไปปไฝ•ๆ•ฐๆฎๅบ“ใ€็”จๆˆทๅŠๆ•ฐๆฎๆจกๅž‹ใ€‚
    
    ๅ”ฏไธ€ๆฌ ็ผบ็š„ๆ˜ฏ๏ผŒๅฎƒไป็„ถไธๆ˜ฏ็œŸ็š„**ๅฎ‰ๅ…จ**ใ€‚
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top