Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 380 for secret2 (0.05 sec)

  1. tests/test_security_api_key_header.py

        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_api_key():
        response = client.get("/users/me", headers={"key": "secret"})
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "secret"}
    
    
    def test_security_api_key_no_key():
        response = client.get("/users/me")
        assert response.status_code == 401, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 24 19:03:06 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  2. tests/test_security_api_key_header_description.py

        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_api_key():
        response = client.get("/users/me", headers={"key": "secret"})
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "secret"}
    
    
    def test_security_api_key_no_key():
        response = client.get("/users/me")
        assert response.status_code == 401, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 24 19:03:06 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_security/test_tutorial004.py

        ],
    )
    def get_mod(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.security.{request.param}")
    
        return mod
    
    
    def get_access_token(*, username="johndoe", password="secret", client: TestClient):
        data = {"username": username, "password": password}
        response = client.post("/token", data=data)
        content = response.json()
        access_token = content.get("access_token")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  4. .github/workflows/latest-changes.yml

          # Ref: https://github.com/actions/checkout/issues/2313
          - uses: actions/checkout@v5
            with:
              # To allow latest-changes to commit to the main branch
              token: ${{ secrets.FASTAPI_LATEST_CHANGES }}
          # Allow debugging with tmate
          - name: Setup tmate session
            uses: mxschmitt/action-tmate@v3
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 24 14:58:32 UTC 2025
    - 1.4K bytes
    - Viewed (1)
  5. src/test/java/jcifs/smb/JAASAuthenticatorTest.java

        void testHandlePasswordOnly() throws Exception {
            JAASAuthenticator auth = new JAASAuthenticator("DOM", "user", "secret");
            PasswordCallback pc = new PasswordCallback("pass:", false);
            auth.handle(new Callback[] { pc });
            assertEquals("secret", new String(pc.getPassword()));
        }
    
        @Test
        @DisplayName("handle: empty user/domain edge yields '@' and null password")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. .github/workflows/shfmt.yml

        
    jobs:
      build:
        name: runner / shfmt
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - uses: luizm/action-sh-checker@master
            env:
              GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
              SHFMT_OPTS: "-s"
            with:
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 443 bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/service/impl/UrlFilterServiceImplTest.java

            List<String> urlList = new ArrayList<>();
            urlList.add("https://example.com/admin/.*");
            urlList.add("https://example.com/private/.*");
            urlList.add("https://example.com/secret/.*");
    
            // Execute
            service.addExcludeUrlFilter(sessionId, urlList);
    
            // Verify
            verify(dataHelper).addExcludeUrlPattern(sessionId, "https://example.com/admin/.*");
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  8. .github/workflows/add-to-project.yml

        name: Add to project
        runs-on: ubuntu-latest
        steps:
          - uses: actions/add-to-project@v1.0.2
            with:
              project-url: https://github.com/orgs/fastapi/projects/2
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Aug 13 02:00:25 UTC 2024
    - 368 bytes
    - Viewed (0)
  9. tests/test_security_api_key_query.py

        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_api_key():
        response = client.get("/users/me?key=secret")
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "secret"}
    
    
    def test_security_api_key_no_key():
        response = client.get("/users/me")
        assert response.status_code == 401, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 24 19:03:06 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  10. docs_src/bigger_applications/app_py39/dependencies.py

    from fastapi import Header, HTTPException
    
    
    async def get_token_header(x_token: str = Header()):
        if x_token != "fake-super-secret-token":
            raise HTTPException(status_code=400, detail="X-Token header invalid")
    
    
    async def get_query_token(token: str):
        if token != "jessica":
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 369 bytes
    - Viewed (0)
Back to top