- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 89 for security (0.22 sec)
-
docs/en/docs/advanced/security/oauth2-scopes.md
For this, we import and use `Security` from `fastapi`. You can use `Security` to declare dependencies (just like `Depends`), but `Security` also receives a parameter `scopes` with a list of scopes (strings). In this case, we pass a dependency function `get_current_active_user` to `Security` (the same way we would do with `Depends`).
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 21:21:35 GMT 2024 - 20.5K bytes - Viewed (0) -
docs/en/docs/tutorial/security/simple-oauth2.md
=== "Python 3.10+" ```Python hl_lines="4 78" {!> ../../../docs_src/security/tutorial003_an_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="4 78" {!> ../../../docs_src/security/tutorial003_an_py39.py!} ``` === "Python 3.8+" ```Python hl_lines="4 79" {!> ../../../docs_src/security/tutorial003_an.py!} ``` === "Python 3.10+ non-Annotated" !!! tip
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 12.5K bytes - Viewed (0) -
docs/de/docs/advanced/security/oauth2-scopes.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:26:08 GMT 2024 - 22.8K bytes - Viewed (0) -
docs/de/docs/tutorial/security/simple-oauth2.md
=== "Python 3.10+" ```Python hl_lines="4 78" {!> ../../../docs_src/security/tutorial003_an_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="4 78" {!> ../../../docs_src/security/tutorial003_an_py39.py!} ``` === "Python 3.8+" ```Python hl_lines="4 79" {!> ../../../docs_src/security/tutorial003_an.py!} ``` === "Python 3.10+ nicht annotiert"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:08:44 GMT 2024 - 14.3K bytes - Viewed (0) -
docs/de/docs/tutorial/security/oauth2-jwt.md
{!> ../../../docs_src/security/tutorial004_an_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="7 48 55-56 59-60 69-75" {!> ../../../docs_src/security/tutorial004_an_py39.py!} ``` === "Python 3.8+" ```Python hl_lines="7 49 56-57 60-61 70-76" {!> ../../../docs_src/security/tutorial004_an.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:27:06 GMT 2024 - 15.1K bytes - Viewed (0) -
docs/zh/docs/advanced/security/oauth2-scopes.md
```Python hl_lines="153" {!../../../docs_src/security/tutorial005.py!} ``` ## 在*路径操作*与依赖项中声明作用域 接下来,为*路径操作* `/users/me/items/` 声明作用域 `items`。 为此,要从 `fastapi` 中导入并使用 `Security` 。 `Security` 声明依赖项的方式和 `Depends` 一样,但 `Security` 还能接收作用域(字符串)列表类型的参数 `scopes`。 此处使用与 `Depends` 相同的方式,把依赖项函数 `get_current_active_user` 传递给 `Security`。 同时,还传递了作用域**列表**,本例中只传递了一个作用域:`items`(此处支持传递更多作用域)。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 22:43:35 GMT 2024 - 11.8K bytes - Viewed (0) -
docs/ru/docs/tutorial/security/first-steps.md
```Python {!> ../../../docs_src/security/tutorial001_an_py39.py!} ``` === "Python 3.8+" ```Python {!> ../../../docs_src/security/tutorial001_an.py!} ``` === "Python 3.8+ без Annotated" !!! tip "Подсказка" Предпочтительнее использовать версию с аннотацией, если это возможно. ```Python {!> ../../../docs_src/security/tutorial001.py!} ``` ## Запуск
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 15.4K bytes - Viewed (0) -
docs/ko/docs/tutorial/security/simple-oauth2.md
먼저 `OAuth2PasswordRequestForm`을 가져와 `/token`에 대한 *경로 작동*에서 `Depends`의 의존성으로 사용합니다. === "파이썬 3.7 이상" ```Python hl_lines="4 76" {!> ../../../docs_src/security/tutorial003.py!} ``` === "파이썬 3.10 이상" ```Python hl_lines="2 74" {!> ../../../docs_src/security/tutorial003_py310.py!} ``` `OAuth2PasswordRequestForm`은 다음을 사용하여 폼 본문을 선언하는 클래스 의존성입니다: * `username`. * `password`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 22:37:23 GMT 2024 - 11.6K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
import com.google.android.gms.security.ProviderInstaller import com.squareup.moshi.Moshi import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory import java.io.IOException import java.net.InetAddress import java.net.UnknownHostException import java.security.KeyStore import java.security.SecureRandom import java.security.Security import java.security.cert.Certificate
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 27K bytes - Viewed (1) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
import java.math.BigInteger import java.net.InetAddress import java.security.GeneralSecurityException import java.security.KeyFactory import java.security.KeyPair import java.security.KeyPairGenerator import java.security.PrivateKey import java.security.PublicKey import java.security.SecureRandom import java.security.Signature import java.security.cert.X509Certificate import java.security.interfaces.ECPublicKey
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 21.6K bytes - Viewed (1)