1#ifndef _DITTO_AUTHENTICATION_STATUS_
2#define _DITTO_AUTHENTICATION_STATUS_
35 bool _is_authenticated;
39bool operator==(
const AuthenticationStatus &lhs,
40 const AuthenticationStatus &rhs);
42bool operator!=(
const AuthenticationStatus &lhs,
43 const AuthenticationStatus &rhs);
Provides info about the authentication status.
Definition: AuthenticationStatus.hpp:10
AuthenticationStatus()
Convenience constructor with is_authenticated set to false and user_id set to the empty string "".
Definition: AuthenticationStatus.cpp:4
bool is_authenticated() const
Returns true if authenticated, otherwise returns false.
Definition: AuthenticationStatus.hpp:15
std::string get_user_id() const
If authenticated, returns the user ID if one was provided by the authentication service....
Definition: AuthenticationStatus.hpp:21