Ditto 4.4.3
|
Test a Ditto Cloud app with weak shared token authentication ("Playground mode"). This is not secure and must only be used for development. More...
#include <Identity.hpp>
Public Attributes | |
std::string | token |
bool | enable_ditto_cloud_sync |
Public Attributes inherited from ditto::Identity | |
IdentityType | type |
Additional Inherited Members | |
Static Public Member Functions inherited from ditto::Identity | |
static std::shared_ptr< OfflinePlaygroundIdentity > | OfflinePlayground (std::string app_id="", uint64_t site_id=0) |
Construct a new OfflinePlaygroundIdentity. | |
static std::shared_ptr< OnlineWithAuthenticationIdentity > | OnlineWithAuthentication (std::string app_id, std::shared_ptr< AuthenticationCallback > callback, bool enable_ditto_cloud_sync=true, std::string custom_auth_url="") |
Construct a new OnlineWithAuthenticationIdentity. | |
static std::shared_ptr< OnlinePlaygroundIdentity > | OnlinePlayground (std::string app_id, std::string token, bool enable_ditto_cloud_sync=true) |
Construct a new OnlinePlaygroundIdentity. | |
static std::shared_ptr< SharedKeyIdentity > | SharedKey (std::string app_id, std::string shared_key, uint64_t site_id=0) |
Construct a new SharedKeyIdentity. | |
static std::shared_ptr< ManualIdentity > | Manual (std::string certificate_config) |
Construct a new ManualIdentity. | |
Test a Ditto Cloud app with weak shared token authentication ("Playground mode"). This is not secure and must only be used for development.
bool ditto::OnlinePlaygroundIdentity::enable_ditto_cloud_sync |
Whether or not sync with Ditto cloud is enabled.
std::string ditto::OnlinePlaygroundIdentity::token |
The shared token used to set up the OnlinePlayground session. This token is provided by the Ditto portal when setting up the application.