RESTinio
|
Helpers for dealing with bearer authentification. More...
#include <restinio/helpers/http_field_parsers/authorization.hpp>
#include <restinio/http_headers.hpp>
#include <restinio/request_handler.hpp>
#include <restinio/expected.hpp>
#include <iostream>
Go to the source code of this file.
Classes | |
struct | restinio::http_field_parsers::bearer_auth::params_t |
Parameters for bearer authentification. More... | |
Namespaces | |
namespace | restinio |
namespace | restinio::http_field_parsers |
namespace | restinio::http_field_parsers::bearer_auth |
namespace | restinio::http_field_parsers::bearer_auth::impl |
Enumerations | |
enum class | restinio::http_field_parsers::bearer_auth::extraction_error_t { restinio::http_field_parsers::bearer_auth::no_auth_http_field , restinio::http_field_parsers::bearer_auth::illegal_http_field_value , restinio::http_field_parsers::bearer_auth::not_bearer_auth_scheme , restinio::http_field_parsers::bearer_auth::invalid_bearer_auth_param } |
Error codes for failures of extraction of bearer authentification parameters. More... | |
Functions | |
RESTINIO_NODISCARD string_view_t | restinio::http_field_parsers::bearer_auth::to_string_view (extraction_error_t what) noexcept |
Helper function to get a string name of extraction_error enum. More... | |
RESTINIO_NODISCARD expected_t< params_t, extraction_error_t > | restinio::http_field_parsers::bearer_auth::try_extract_params (const authorization_value_t &http_field) |
Helper function for getting parameters of bearer authentification from an already parsed HTTP-field. More... | |
RESTINIO_NODISCARD expected_t< params_t, extraction_error_t > | restinio::http_field_parsers::bearer_auth::try_extract_params (authorization_value_t &&http_field) |
Helper function for getting parameters of bearer authentification from an already parsed HTTP-field. More... | |
RESTINIO_NODISCARD expected_t< params_t, extraction_error_t > | restinio::http_field_parsers::bearer_auth::impl::perform_extraction_attempt (const optional_t< string_view_t > opt_field_value) |
RESTINIO_NODISCARD expected_t< params_t, extraction_error_t > | restinio::http_field_parsers::bearer_auth::try_extract_params (const http_header_fields_t &fields, string_view_t auth_field_name) |
Helper function for getting parameters of bearer authentification from a set of HTTP-fields. More... | |
template<typename Extra_Data > | |
RESTINIO_NODISCARD expected_t< params_t, extraction_error_t > | restinio::http_field_parsers::bearer_auth::try_extract_params (const generic_request_t< Extra_Data > &req, string_view_t auth_field_name) |
Helper function for getting parameters of bearer authentification from a request. More... | |
RESTINIO_NODISCARD expected_t< params_t, extraction_error_t > | restinio::http_field_parsers::bearer_auth::try_extract_params (const http_header_fields_t &fields, http_field_t auth_field_id) |
Helper function for getting parameters of bearer authentification from a set of HTTP-fields. More... | |
template<typename Extra_Data > | |
RESTINIO_NODISCARD expected_t< params_t, extraction_error_t > | restinio::http_field_parsers::bearer_auth::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. More... | |
Helpers for dealing with bearer authentification.
Definition in file bearer_auth.hpp.