Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for alice (0.17 sec)

  1. tests/test_tutorial/test_security/test_tutorial005_an.py

        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    def test_token_inactive_user():
        access_token = get_access_token(
            username="alice", password="secretalice", scope="me"
        )
        response = client.get(
            "/users/me", headers={"Authorization": f"Bearer {access_token}"}
        )
        assert response.status_code == 400, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_security/test_tutorial005_an_py39.py

        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    @needs_py39
    def test_token_inactive_user(client: TestClient):
        access_token = get_access_token(
            username="alice", password="secretalice", scope="me", client=client
        )
        response = client.get(
            "/users/me", headers={"Authorization": f"Bearer {access_token}"}
        )
        assert response.status_code == 400, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_security/test_tutorial005_py310.py

        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    @needs_py310
    def test_token_inactive_user(client: TestClient):
        access_token = get_access_token(
            username="alice", password="secretalice", scope="me", client=client
        )
        response = client.get(
            "/users/me", headers={"Authorization": f"Bearer {access_token}"}
        )
        assert response.status_code == 400, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_security/test_tutorial005_an_py310.py

        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    @needs_py310
    def test_token_inactive_user(client: TestClient):
        access_token = get_access_token(
            username="alice", password="secretalice", scope="me", client=client
        )
        response = client.get(
            "/users/me", headers={"Authorization": f"Bearer {access_token}"}
        )
        assert response.status_code == 400, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_security/test_tutorial005_py39.py

        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    @needs_py39
    def test_token_inactive_user(client: TestClient):
        access_token = get_access_token(
            username="alice", password="secretalice", scope="me", client=client
        )
        response = client.get(
            "/users/me", headers={"Authorization": f"Bearer {access_token}"}
        )
        assert response.status_code == 400, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_security/test_tutorial005.py

        assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"'
    
    
    def test_token_inactive_user():
        access_token = get_access_token(
            username="alice", password="secretalice", scope="me"
        )
        response = client.get(
            "/users/me", headers={"Authorization": f"Bearer {access_token}"}
        )
        assert response.status_code == 400, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/security/simple-oauth2.md

    잠금 아이콘을 클릭하고 로그아웃한 다음 동일한 작업을 다시 시도하면 다음과 같은 HTTP 401 오류가 발생합니다.
    
    ```JSON
    {
      "detail": "Not authenticated"
    }
    ```
    
    ### 비활성된 유저
    
    이제 비활성된 사용자로 시도하고, 인증해봅시다:
    
    유저명: `alice`
    
    패스워드: `secret2`
    
    그리고 `/users/me` 경로와 함께 `GET` 작업을 사용해 봅시다.
    
    다음과 같은 "Inactive user" 오류가 발생합니다:
    
    ```JSON
    {
      "detail": "Inactive user"
    }
    ```
    
    ## 요약
    
    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)
  8. docs/de/docs/tutorial/security/simple-oauth2.md

    ```JSON
    {
      "detail": "Not authenticated"
    }
    ```
    
    ### Inaktiver Benutzer
    
    Versuchen Sie es nun mit einem inaktiven Benutzer und authentisieren Sie sich mit:
    
    Benutzer: `alice`.
    
    Passwort: `secret2`.
    
    Und versuchen Sie, die Operation `GET` mit dem Pfad `/users/me` zu verwenden.
    
    Sie erhalten die Fehlermeldung „Inactive user“:
    
    ```JSON
    {
      "detail": "Inactive user"
    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)
  9. docs/en/docs/tutorial/security/simple-oauth2.md

    ```JSON
    {
      "detail": "Not authenticated"
    }
    ```
    
    ### Inactive user
    
    Now try with an inactive user, authenticate with:
    
    User: `alice`
    
    Password: `secret2`
    
    And try to use the operation `GET` with the path `/users/me`.
    
    You will get an "Inactive user" error, like:
    
    ```JSON
    {
      "detail": "Inactive user"
    }
    ```
    
    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)
  10. android/guava/src/com/google/common/io/Files.java

       *
       * <p>Example: {@code Files.fileTraverser().depthFirstPreOrder(new File("/"))} may return files
       * with the following paths: {@code ["/", "/etc", "/etc/config.txt", "/etc/fonts", "/home",
       * "/home/alice", ...]}
       *
       * @since 23.5
       */
      public static Traverser<File> fileTraverser() {
        return Traverser.forTree(FILE_TREE);
      }
    
      private static final SuccessorsFunction<File> FILE_TREE =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
Back to top