RESTinio
Loading...
Searching...
No Matches
bearer_auth.hpp File Reference

Helpers for dealing with bearer authentification. More...

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

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.
expected_t< params_t, extraction_error_trestinio::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.
expected_t< params_t, extraction_error_trestinio::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.
expected_t< params_t, extraction_error_trestinio::http_field_parsers::bearer_auth::impl::perform_extraction_attempt (const std::optional< string_view_t > opt_field_value)
expected_t< params_t, extraction_error_trestinio::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.
template<typename Extra_Data>
expected_t< params_t, extraction_error_trestinio::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.
expected_t< params_t, extraction_error_trestinio::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.
template<typename Extra_Data>
expected_t< params_t, extraction_error_trestinio::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.

Detailed Description

Helpers for dealing with bearer authentification.

Since
v.0.6.7.1

Definition in file bearer_auth.hpp.