Ditto 4.0.2
Loading...
Searching...
No Matches
AuthenticationCallback.hpp
1#ifndef _DITTO_AUTHENTICATION_CALLBACK_
2#define _DITTO_AUTHENTICATION_CALLBACK_
3
4#include <cstdint>
5#include <memory>
6
7namespace ditto {
8class Authenticator;
9
14public:
20 virtual void
21 authentication_required(std::shared_ptr<Authenticator> authenticator) = 0;
22
35 virtual void
36 authentication_expiring_soon(std::shared_ptr<Authenticator> authenticator,
37 std::int64_t seconds_remaining) = 0;
38
45 std::shared_ptr<Authenticator> authenticator) = 0;
46};
47} // namespace ditto
48#endif
Provides feedback to the developer about Ditto authentication status.
Definition: AuthenticationCallback.hpp:13
virtual void authentication_required(std::shared_ptr< Authenticator > authenticator)=0
There is no Ditto authentication token or it has expired. Sync will not work until there is a success...
virtual void authentication_status_did_change(std::shared_ptr< Authenticator > authenticator)=0
Notifies the callback object that the authentication status did change. Use the authenticators proper...
virtual void authentication_expiring_soon(std::shared_ptr< Authenticator > authenticator, std::int64_t seconds_remaining)=0
Warns that the Ditto authentication token is getting old.