Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for read_with_get_token (0.11 seconds)

  1. tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py

    )
    async def read_with_oauth2_scheme():
        return {"message": "Admin Access"}
    
    
    @app.get(
        "/with-get-token", dependencies=[Security(get_token, scopes=["read", "write"])]
    )
    async def read_with_get_token():
        return {"message": "Admin Access"}
    
    
    router = APIRouter(dependencies=[Security(oauth2_scheme, scopes=["read"])])
    
    
    @router.get("/items/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 6.6K bytes
    - Click Count (0)
Back to Top