7#include <boost/describe/enum.hpp>
25 std::string
to_string(AuthorizationScheme scheme);
35 AuthorizationScheme
scheme()
const;
43 std::variant<AuthorizationScheme, std::string>
scheme_;
Definition authorization.hpp:28
std::variant< AuthorizationScheme, std::string > scheme_
Definition authorization.hpp:43
std::string unknownSchemeAsString() const
Use this function if scheme is "Other", this will then return the scheme instead as a string.
Definition authorization.cpp:45
AuthorizationScheme scheme() const
Returns the authorization scheme. If the value is "Other", use unknownSchemeAsString instead.
Definition authorization.cpp:38
Definition authorization.hpp:10
BOOST_DEFINE_ENUM(AuthorizationScheme, Basic, Bearer, Digest, Hoba, Mutual, Ntlm, Vapid, Scram, Aws4_Hmac_Sha256, Other)
std::string to_string(AuthorizationScheme scheme)
Definition authorization.cpp:28
AuthorizationScheme authorizationSchemeFromString(std::string_view)
Definition authorization.cpp:9