14 #include <restinio/helpers/http_field_parsers/authorization.hpp> 16 #include <restinio/http_headers.hpp> 17 #include <restinio/request_handler.hpp> 18 #include <restinio/expected.hpp> There is no HTTP field with authentification parameters.
std::string token
Access Token.
Parameters for bearer authentification.
RESTINIO_NODISCARD expected_t< params_t, extraction_error_t > try_extract_params(const generic_request_t< Extra_Data > &req, http_field_t auth_field_id)
Helper function for getting parameters of bearer authentification from a request. ...
The HTTP field with authentification parameters can't be parsed.
RESTINIO_NODISCARD auto try_parse_field(const generic_request_t< Extra_Data > &req, http_field_t field_id, string_view_t default_value=string_view_t{})
A helper function for extraction and parsing a value of HTTP-field.
RESTINIO_NODISCARD expected_t< params_t, extraction_error_t > perform_extraction_attempt(const optional_t< string_view_t > opt_field_value)
extraction_error_t
Error codes for failures of extraction of bearer authentification parameters.
Invalid value of parameter for bearer authentification scheme. The single parameter in the form of b6...
std::enable_if< std::is_same< Parameter_Container, query_string_params_t >::value||std::is_same< Parameter_Container, router::route_params_t >::value, optional_t< Value_Type > >::type opt_value(const Parameter_Container ¶ms, string_view_t key)
Gets the value of a parameter specified by key wrapped in optional_t<Value_Type> if parameter exists ...
Different authentification scheme found. bearer authentification scheme is expected.