|
Monero
|
Implements RFC 2617 digest auth. Digests from RFC 7616 can be added. More...
#include <http_auth.h>
Classes | |
| struct | session |
Public Types | |
| enum | status : std::uint8_t { kSuccess = 0 , kBadPassword , kParseFailure } |
Public Member Functions | |
| http_client_auth () | |
| http_client_auth (login credentials) | |
| status | handle_401 (const http_response_info &response) |
| boost::optional< std::pair< std::string, std::string > > | get_auth_field (const boost::string_ref method, const boost::string_ref uri) |
Private Member Functions | |
| status | do_handle_401 (const http_response_info &) |
| boost::optional< std::pair< std::string, std::string > > | do_get_auth_field (boost::string_ref, boost::string_ref) |
Private Attributes | |
| boost::optional< session > | user |
Implements RFC 2617 digest auth. Digests from RFC 7616 can be added.
| enum epee::net_utils::http::http_client_auth::status : std::uint8_t |
|
inline |
| epee::net_utils::http::http_client_auth::http_client_auth | ( | login | credentials | ) |
|
private |
|
private |
|
inline |
After calling handle_401, clients should call this function to generate an authentication field for every request.
|
inline |
Clients receiving a 401 response code from the server should call this function to process the server auth. Then, before every client request, get_auth_field() should be called to retrieve the newest authorization request.
|
private |