Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for authentication (0.36 sec)

  1. fastapi/security/api_key.py

                    available, instead of erroring out, the dependency result will be
                    `None`.
    
                    This is useful when you want to have optional authentication.
    
                    It is also useful when you want to have authentication that can be
                    provided in one of multiple optional ways (for example, in a query
                    parameter or in an HTTP Bearer token).
                    """
                ),
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 23 22:29:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_security/test_tutorial006.py

        )
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == "Basic"
        assert response.json() == {"detail": "Invalid authentication credentials"}
    
    
    def test_security_http_basic_non_basic_credentials():
        payload = b64encode(b"johnsecret").decode("ascii")
        auth_header = f"Basic {payload}"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  3. tests/test_security_http_basic_optional.py

        )
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == "Basic"
        assert response.json() == {"detail": "Invalid authentication credentials"}
    
    
    def test_security_http_basic_non_basic_credentials():
        payload = b64encode(b"johnsecret").decode("ascii")
        auth_header = f"Basic {payload}"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  4. tests/test_security_http_basic_realm.py

        )
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
        assert response.json() == {"detail": "Invalid authentication credentials"}
    
    
    def test_security_http_basic_non_basic_credentials():
        payload = b64encode(b"johnsecret").decode("ascii")
        auth_header = f"Basic {payload}"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/security/index.md

        * A cookie.
    * `http`: standard HTTP authentication systems, including:
        * `bearer`: a header `Authorization` with a value of `Bearer ` plus a token. This is inherited from OAuth2.
        * HTTP Basic authentication.
        * HTTP Digest, etc.
    * `oauth2`: all the OAuth2 ways to handle security (called "flows").
        * Several of these flows are appropriate for building an OAuth 2.0 authentication provider (like Google, Facebook, Twitter, GitHub, etc):
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  6. docs/en/docs/how-to/custom-docs-ui-assets.md

        If you integrate your API with an OAuth2 provider, you will be able to authenticate and come back to the API docs with the acquired credentials. And interact with it using the real OAuth2 authentication.
    
        Swagger UI will handle it behind the scenes for you, but it needs this "redirect" helper.
    
    ### Create a *path operation* to test it
    
    Now, to be able to test that everything works, create a *path operation*:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Oct 30 09:58:58 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/testing-dependencies.md

    ### Use cases: external service
    
    An example could be that you have an external authentication provider that you need to call.
    
    You send it a token and it returns an authenticated user.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  8. docs/en/data/external_links.yml

      - author: Nils de Bruin
        author_link: https://medium.com/@nilsdebruin
        link: https://medium.com/data-rebels/fastapi-authentication-revisited-enabling-api-key-authentication-122dc5975680
        title: 'FastAPI authentication revisited: Enabling API key authentication'
      - author: Nick Cortale
        author_link: https://nickc1.github.io/
        link: https://nickc1.github.io/api,/scikit-learn/2019/01/10/scikit-fastapi.html
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 21 20:57:27 GMT 2024
    - 21.3K bytes
    - Viewed (2)
  9. docs/de/docs/tutorial/security/index.md

        * Einem Cookie.
    * `http`: Standard-HTTP-Authentifizierungssysteme, einschließlich:
        * `bearer`: ein Header `Authorization` mit dem Wert `Bearer` plus einem Token. Dies wird von OAuth2 geerbt.
        * HTTP Basic Authentication.
        * HTTP Digest, usw.
    * `oauth2`: Alle OAuth2-Methoden zum Umgang mit Sicherheit (genannt „Flows“).
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:09:35 GMT 2024
    - 5K bytes
    - Viewed (0)
  10. fastapi/security/open_id_connect_url.py

                    be `None`.
    
                    This is useful when you want to have optional authentication.
    
                    It is also useful when you want to have authentication that can be
                    provided in one of multiple optional ways (for example, with OpenID
                    Connect or in a cookie).
                    """
                ),
            ] = True,
        ):
            self.model = OpenIdConnectModel(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 2.7K bytes
    - Viewed (0)
Back to top