10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::eg Namespace Reference

Detailed Description

Examples.

Functions

tenduke::oidc::OIDCStatemutate (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)
 
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
 

Function Documentation

◆ getDeploymentURL()

std::string tenduke::eg::getDeploymentURL ( int  argc,
char **  argv 
)

Returns deployment URL.

This function returns deployment URL. By default it returns ::tenduke::ee::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.

Parameters
argccommand line argc (for future use, not used currently)
argvcommand line argv (for future use, not used currently)
Returns
the deployment URL

Variable Documentation

◆ HTTP_MESSAGE_WHEN_LOGIN_SUCCEEDS

const std::string tenduke::eg::HTTP_MESSAGE_WHEN_LOGIN_SUCCEEDS
Initial value:
=
"HTTP/1.1 200 OK\n"
"Content-Type: text/html; charset=utf-8\n"
"\n"
"<html>\n"
"<head>\n"
" <title>Login successful, you can close the tab</title>\n"
" <style>\n"
" body {\n"
" display: flex; flex-direction: column; justify-content: center;\n"
" min-height: 100vh;\n"
" }\n"
" .center {\n"
" text-align: center;\ns"
" }\n"
" </style>\n"
"</head>\n"
"<body>\n"
" <div class=\"center\">\n"
" <H1>Login successful</H1>\n"
" <p>You can close this tab now</p>\n"
" </div>\n"
"</body>\n"
"</html>"