HttpBearerChallenge Class
- Inheritance
-
builtins.objectHttpBearerChallenge
Constructor
HttpBearerChallenge(request_uri, challenge)
Parameters
- request_uri
- challenge
Methods
| get_authorization_server |
Returns the URI for the authorization server if present, otherwise empty string. |
| get_resource |
Returns the resource if present, otherwise empty string. |
| get_scope |
Returns the scope if present, otherwise empty string. |
| get_value | |
| is_bearer_challenge |
Tests whether an authentication header is a Bearer challenge. :param authentication_header: the authentication header to test rtype: bool |
get_authorization_server
Returns the URI for the authorization server if present, otherwise empty string.
get_authorization_server()
get_resource
Returns the resource if present, otherwise empty string.
get_resource()
get_scope
Returns the scope if present, otherwise empty string.
get_scope()
get_value
get_value(key)
Parameters
- key
is_bearer_challenge
Tests whether an authentication header is a Bearer challenge. :param authentication_header: the authentication header to test rtype: bool
static is_bearer_challenge(authentication_header)
Parameters
- authentication_header
Feedback
Submit and view feedback for