Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for dependsOn (0.14 sec)

  1. docs/ko/docs/tutorial/security/simple-oauth2.md

        OAuth2의 경우 문자열일 뿐입니다.
    
    ## `username`과 `password`를 가져오는 코드
    
    이제 **FastAPI**에서 제공하는 유틸리티를 사용하여 이를 처리해 보겠습니다.
    
    ### `OAuth2PasswordRequestForm`
    
    먼저 `OAuth2PasswordRequestForm`을 가져와 `/token`에 대한 *경로 작동*에서 `Depends`의 의존성으로 사용합니다.
    
    === "파이썬 3.7 이상"
    
        ```Python hl_lines="4  76"
        {!> ../../../docs_src/security/tutorial003.py!}
        ```
    
    === "파이썬 3.10 이상"
    
        ```Python hl_lines="2  74"
    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)
  2. docs/de/docs/tutorial/security/simple-oauth2.md

    Lassen Sie uns nun die von **FastAPI** bereitgestellten Werkzeuge verwenden, um das zu erledigen.
    
    ### `OAuth2PasswordRequestForm`
    
    Importieren Sie zunächst `OAuth2PasswordRequestForm` und verwenden Sie es als Abhängigkeit mit `Depends` in der *Pfadoperation* für `/token`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="4  78"
        {!> ../../../docs_src/security/tutorial003_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
    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)
  3. docs/en/docs/tutorial/security/simple-oauth2.md

    ## Code to get the `username` and `password`
    
    Now let's use the utilities provided by **FastAPI** to handle this.
    
    ### `OAuth2PasswordRequestForm`
    
    First, import `OAuth2PasswordRequestForm`, and use it as a dependency with `Depends` in the *path operation* for `/token`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="4  78"
        {!> ../../../docs_src/security/tutorial003_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
    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)
Back to top