roar
Loading...
Searching...
No Matches
basic_auth.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <optional>
4#include <string>
5#include <string_view>
6
7namespace Roar
8{
9 struct BasicAuth
10 {
11 static std::optional<BasicAuth> fromBase64(std::string_view base64Encoded);
12
13 BasicAuth(std::string user, std::string password);
14
15 std::string user;
16 std::string password;
17
18 std::string toBase64() const;
19 };
20}
Definition authorization.hpp:10
Definition basic_auth.hpp:10
static std::optional< BasicAuth > fromBase64(std::string_view base64Encoded)
Definition basic_auth.cpp:7
std::string user
Definition basic_auth.hpp:15
std::string password
Definition basic_auth.hpp:16
std::string toBase64() const
Definition basic_auth.cpp:24