- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for OAuth (0.27 sec)
-
tests/test_security_oauth2_optional.py
} }, auto_error=False, ) class User(BaseModel): username: str def get_current_user(oauth_header: Optional[str] = Security(reusable_oauth2)): if oauth_header is None: return None user = User(username=oauth_header) return user @app.post("/login") def login(form_data: OAuth2PasswordRequestFormStrict = Depends()): return form_data
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 10.8K bytes - Viewed (0) -
tests/test_security_oauth2_optional_description.py
description="OAuth2 security scheme", auto_error=False, ) class User(BaseModel): username: str def get_current_user(oauth_header: Optional[str] = Security(reusable_oauth2)): if oauth_header is None: return None user = User(username=oauth_header) return user @app.post("/login") def login(form_data: OAuth2PasswordRequestFormStrict = Depends()): return form_data
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 10.9K bytes - Viewed (0) -
fastapi/openapi/docs.py
html += """ presets: [ SwaggerUIBundle.presets.apis, SwaggerUIBundle.SwaggerUIStandalonePreset ], })""" if init_oauth: html += f""" ui.initOAuth({json.dumps(jsonable_encoder(init_oauth))}) """ html += """ </script> </body> </html> """ return HTMLResponse(html) def get_redoc_html( *,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 10.1K bytes - Viewed (0) -
tests/test_security_oauth2.py
} } ) class User(BaseModel): username: str # Here we use string annotations to test them def get_current_user(oauth_header: "str" = Security(reusable_oauth2)): user = User(username=oauth_header) return user @app.post("/login") # Here we use string annotations to test them def login(form_data: "OAuth2PasswordRequestFormStrict" = Depends()):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 10.7K bytes - Viewed (0) -
build-logic/dependency-modules/src/main/kotlin/gradlebuild/modules/extension/ExternalModulesExtension.kt
val googleHttpClientGson = "com.google.http-client:google-http-client-gson" val googleHttpClientApacheV2 = "com.google.http-client:google-http-client-apache-v2" val googleOauthClient = "com.google.oauth-client:google-oauth-client" val gradleIdeStarter = "org.gradle.buildtool.internal:gradle-ide-starter:$gradleIdeStarterVersion" val gradleProfiler = "org.gradle.profiler:gradle-profiler"
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Tue Apr 16 15:50:58 GMT 2024 - 14.4K bytes - Viewed (0) -
docs/ru/docs/tutorial/handling-errors.md
Единственное отличие заключается в том, что `HTTPException` от **FastAPI** позволяет добавлять заголовки, которые будут включены в ответ. Он необходим/используется внутри системы для OAuth 2.0 и некоторых утилит безопасности. Таким образом, вы можете продолжать вызывать `HTTPException` от **FastAPI** как обычно в своем коде.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 14.5K bytes - Viewed (0) -
pom.xml
<artifactId>error_prone_annotations</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.google.oauth-client</groupId> <artifactId>google-oauth-client</artifactId> <version>${google.oauth.client.version}</version> </dependency> <dependency> <groupId>com.google.http-client</groupId> <artifactId>google-http-client</artifactId>
XML - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Mon Apr 22 12:06:58 GMT 2024 - 48.7K bytes - Viewed (0) -
docs/pt/docs/tutorial/handling-errors.md
A diferença entre os dois é a de que o `HTTPException` do **FastAPI** permite que você adicione *headers* que serão incluídos nas *responses*. Esses *headers* são necessários/utilizados internamente pelo OAuth 2.0 e também por outras utilidades de segurança. Portanto, você pode continuar lançando o `HTTPException` do **FastAPI** normalmente no seu código.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 10K bytes - Viewed (0) -
helm/minio/values.yaml
existingClientSecretName: "" existingClientIdKey: "" existingClientSecretKey: "" claimName: "policy" scopes: "openid,profile,email" redirectUri: "https://console-endpoint-url/oauth_callback" # Can leave empty claimPrefix: "" comment: "" displayName: "" networkPolicy: enabled: false
Others - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun Apr 28 10:14:37 GMT 2024 - 18.4K bytes - Viewed (0) -
docs/ja/docs/tutorial/handling-errors.md
**FastAPI**は独自の`HTTPException`を持っています。 また、 **FastAPI**のエラークラス`HTTPException`はStarletteのエラークラス`HTTPException`を継承しています。 唯一の違いは、**FastAPI** の`HTTPException`はレスポンスに含まれるヘッダを追加できることです。 これはOAuth 2.0といくつかのセキュリティユーティリティのために内部的に必要とされ、使用されています。 そのため、コード内では通常通り **FastAPI** の`HTTPException`を発生させ続けることができます。 しかし、例外ハンドラを登録する際には、Starletteの`HTTPException`を登録しておく必要があります。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 11.8K bytes - Viewed (0)