Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for PROVIDED (0.26 sec)

  1. docs/sts/client_grants/sts_element.py

                try:
                    return self.element.find('sts:{}'.format(name), _STS_NS).text
                except _ETREE_EXCEPTIONS as error:
                    raise InvalidXMLError(
                        ('Invalid XML provided for "{}" - erroring tag <{}>. '
                         'Message: {}').format(self.root_name, name, error.message)
                    )
            else:
                return self.element.findtext('sts:{}'.format(name), None, _STS_NS)
    
    Python
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  2. fastapi/security/api_key.py

    
    class APIKeyBase(SecurityBase):
        pass
    
    
    class APIKeyQuery(APIKeyBase):
        """
        API key authentication using a query parameter.
    
        This defines the name of the query parameter that should be provided in the request
        with the API key and integrates that into the OpenAPI documentation. It extracts
        the key value sent in the query parameter automatically and provides it as the
    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)
  3. fastapi/security/http.py

                    """
                ),
            ] = None,
            auto_error: Annotated[
                bool,
                Doc(
                    """
                    By default, if the HTTP Basic authentication is not provided (a
                    header), `HTTPBasic` will automatically cancel the request and send the
                    client an error.
    
                    If `auto_error` is set to `False`, when the HTTP Basic authentication
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Apr 19 15:29:38 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  4. fastapi/security/oauth2.py

                    """
                ),
            ] = None,
            auto_error: Annotated[
                bool,
                Doc(
                    """
                    By default, if no HTTP Authorization header is provided, required for
                    OAuth2 authentication, it will automatically cancel the request and
                    send the client an error.
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  5. docs_src/bigger_applications/app_an_py39/dependencies.py

            raise HTTPException(status_code=400, detail="X-Token header invalid")
    
    
    async def get_query_token(token: str):
        if token != "jessica":
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 409 bytes
    - Viewed (0)
  6. docs_src/bigger_applications/app_an/dependencies.py

            raise HTTPException(status_code=400, detail="X-Token header invalid")
    
    
    async def get_query_token(token: str):
        if token != "jessica":
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 419 bytes
    - Viewed (0)
  7. docs_src/bigger_applications/app/dependencies.py

            raise HTTPException(status_code=400, detail="X-Token header invalid")
    
    
    async def get_query_token(token: str):
        if token != "jessica":
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 369 bytes
    - Viewed (0)
  8. fastapi/security/open_id_connect_url.py

                    """
                ),
            ] = None,
            auto_error: Annotated[
                bool,
                Doc(
                    """
                    By default, if no HTTP Authorization header is provided, required for
                    OpenID Connect authentication, it will automatically cancel the request
                    and send the client an error.
    
    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)
  9. fastapi/applications.py

                ),
            ] = "3.1.0"
            self.openapi_schema: Optional[Dict[str, Any]] = None
            if self.openapi_url:
                assert self.title, "A title must be provided for OpenAPI, e.g.: 'My API'"
                assert self.version, "A version must be provided for OpenAPI, e.g.: '2.1.0'"
            # TODO: remove when discarding the openapi_prefix parameter
            if openapi_prefix:
                logger.warning(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_bigger_applications/test_main_an.py

    
    def test_users_token_monica_with_no_jessica(client: TestClient):
        response = client.get("/users?token=monica")
        assert response.status_code == 400
        assert response.json() == {"detail": "No Jessica token provided"}
    
    
    def test_items_token_jessica(client: TestClient):
        response = client.get(
            "/items?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 200
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.6K bytes
    - Viewed (0)
Back to top