Ditto 4.1.0
Public Member Functions | List of all members
ditto::AuthenticationStatus Struct Reference

Provides info about the authentication status. More...

#include <AuthenticationStatus.hpp>

Public Member Functions

bool is_authenticated () const
 Returns true if authenticated, otherwise returns false.
 
std::string get_user_id () const
 If authenticated, returns the user ID if one was provided by the authentication service. Otherwise returns an empty string "".
 
 AuthenticationStatus ()
 Convenience constructor with is_authenticated set to false and user_id set to the empty string "".
 
 AuthenticationStatus (bool is_authenticated, std::string user_id)
 Constructs an authentication status with the given parameters.
 

Detailed Description

Provides info about the authentication status.