Added Model namespace

This commit is contained in:
kdeng00
2019-09-01 13:54:16 -04:00
parent 1255aa0ff7
commit d44a5bb1bc
19 changed files with 131 additions and 205 deletions
+3 -3
View File
@@ -16,12 +16,12 @@ class token_manager
public:
token_manager();
loginResult retrieve_token();
loginResult retrieve_token(std::string_view);
Model::loginResult retrieve_token();
Model::loginResult retrieve_token(std::string_view);
bool is_token_valid(std::string&, Scope);
private:
auth_credentials parse_auth_credentials(std::string_view);
Model::auth_credentials parse_auth_credentials(std::string_view);
std::vector<std::string> extract_scopes(const jwt::decoded_jwt&&);
std::pair<bool, std::vector<std::string>> fetch_auth_header(const std::string&);