|
10Duke Enterprise C++ SDK
|
Examples.
Functions | |
| tenduke::oidc::OIDCState * | mutate (const std::shared_ptr< const tenduke::oidc::OIDCState > &state) |
| std::string | getDeploymentURL (int argc, char **argv) |
| Returns deployment URL. | |
| void | setExpiresAt (const std::shared_ptr< const tenduke::oidc::OIDCState > &state, std::int64_t expiresAt) |
| void | setRefreshToken (const std::shared_ptr< const tenduke::oidc::OIDCState > &state, const std::string &refreshToken) |
| void | dumpToConsole (const ::tenduke::ee::licensing::Lease &lease) |
| void | dumpToConsole (const std::vector< tenduke::ee::licensing::Lease > &leases) |
| void | dumpToConsole (const std::map< std::string, tenduke::ee::licensing::Lease > &leases) |
| void | dumpToConsole (const tenduke::ee::licensing::LicenseCheckoutResponse &response) |
| void | dumpToConsole (const tenduke::ee::licensing::LicenseRenewResponse &response) |
| void | dumpToConsole (const tenduke::ee::licensing::LicenseReleaseResponse &response) |
| std::string | maskToken (const std::string &token) |
| Masks a token for printing: shows only the length and the last characters, so that the tokens can be told apart without printing them. | |
| void | dumpToConsole (const tenduke::oidc::OIDCState &state) |
| void | dumpToConsole (const std::shared_ptr< const tenduke::oidc::OIDCState > &state) |
Variables | |
| const std::string | DEMO_DEPLOYMENT_URL = "https://your-deployment-url-here" |
| const std::string | HTTP_MESSAGE_WHEN_LOGIN_SUCCEEDS |
|
inline |
Returns deployment URL.
This function returns deployment URL. By default it returns ::tenduke::eg::DEMO_DEPLOYMENT_URL, but if environment variable XD_DEPLOYMENT_URL is defined, returns the value of that.
Parameters argc and argv are not currently used, but are passed for possible future expansion to enable parsing the deployment URL from command line.
| argc | command line argc (for future use, not used currently) |
| argv | command line argv (for future use, not used currently) |
|
inline |
Masks a token for printing: shows only the length and the last characters, so that the tokens can be told apart without printing them.
Never print access or refresh tokens: anyone who sees the output (e.g. in logs) could use them.
| token | the token |
| const std::string tenduke::eg::HTTP_MESSAGE_WHEN_LOGIN_SUCCEEDS |