HttpChallenge Class
- Inheritance
-
builtins.objectHttpChallenge
Constructor
HttpChallenge(request_uri, challenge, response_headers=None)
Parameters
- request_uri
- challenge
- response_headers
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 the HttpChallenge a Bearer challenge. rtype: bool |
| is_pop_challenge |
Tests whether the HttpChallenge is a proof of possession challenge. rtype: bool |
| supports_message_protection |
Returns True if challenge vault supports message protection |
| supports_pop |
Returns True if challenge supports pop token auth else False |
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 the HttpChallenge a Bearer challenge. rtype: bool
is_bearer_challenge()
is_pop_challenge
Tests whether the HttpChallenge is a proof of possession challenge. rtype: bool
is_pop_challenge()
supports_message_protection
Returns True if challenge vault supports message protection
supports_message_protection()
supports_pop
Returns True if challenge supports pop token auth else False
supports_pop()
Feedback
Submit and view feedback for