Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for make_not_authenticated_error (0.08 sec)

  1. fastapi/security/http.py

                if self.auto_error:
                    raise self.make_not_authenticated_error()
                else:
                    return None
            try:
                data = b64decode(param).decode("ascii")
            except (ValueError, UnicodeDecodeError, binascii.Error) as e:
                raise self.make_not_authenticated_error() from e
            username, separator, password = data.partition(":")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  2. fastapi/security/oauth2.py

                flows=cast(OAuthFlowsModel, flows), description=description
            )
            self.scheme_name = scheme_name or self.__class__.__name__
            self.auto_error = auto_error
    
        def make_not_authenticated_error(self) -> HTTPException:
            """
            The OAuth 2 specification doesn't define the challenge that should be used,
            because a `Bearer` token is not really the only option to authenticate.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 22K bytes
    - Viewed (0)
Back to top