Ditto 4.13.1
 
Loading...
Searching...
No Matches
AuthenticationCallback.hpp
1#ifndef DITTO_AUTHENTICATION_CALLBACK_H
2#define DITTO_AUTHENTICATION_CALLBACK_H
3
4#include <cstdint>
5#include <memory>
6
7namespace ditto {
8class Authenticator;
9
14 // TODO(v5): This abstract class should have a virtual destructor, and should
15 // delete the copy constructor, copy assignment, move constructor, and move
16 // assignment operators.
17public:
23 virtual void
24 authentication_required(std::shared_ptr<Authenticator> authenticator) = 0;
25
38 virtual void
39 authentication_expiring_soon(std::shared_ptr<Authenticator> authenticator,
40 std::int64_t seconds_remaining) = 0;
41
48 std::shared_ptr<Authenticator> authenticator) = 0;
49};
50} // namespace ditto
51#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.
Provides access to authentication information and methods for logging on to Ditto Cloud....
Definition Authenticator.hpp:34
Namespace for the Ditto C++ SDK types and functions.
Definition AbstractDocumentPath.hpp:19