olp-cpp-sdk  1.19.0
Public Member Functions | Public Attributes | List of all members
olp::authentication::Settings Struct Reference

Configures the TokenEndpoint instance. More...

#include <Settings.h>

Collaboration diagram for olp::authentication::Settings:
Collaboration graph
[legend]

Public Member Functions

 Settings (AuthenticationCredentials credentials)
 Creates the Settings instance. More...
 

Public Attributes

AuthenticationCredentials credentials
 The access key ID and access key secret that you got from the HERE Account as a part of the onboarding or support process on the developer portal.
 
std::shared_ptr< http::Networknetwork_request_handler
 The network instance that is used to internally operate with the HERE platform Services.
 
std::shared_ptr< thread::TaskSchedulertask_scheduler
 (Optional) The TaskScheduler class that is used to manage the callbacks enqueue.
 
boost::optional< http::NetworkProxySettingsnetwork_proxy_settings
 (Optional) The configuration settings for the network layer.
 
std::string token_endpoint_url
 (Optional) The server URL of the token endpoint. More...
 
bool use_system_time {true}
 Uses system system time in authentication requests rather than requesting time from authentication server. More...
 
client::RetrySettings retry_settings
 A collection of settings that controls how failed requests should be treated.
 

Detailed Description

Configures the TokenEndpoint instance.

Contains settings that customize the TokenEndpoint class.

Constructor & Destructor Documentation

◆ Settings()

olp::authentication::Settings::Settings ( AuthenticationCredentials  credentials)
explicit

Creates the Settings instance.

Parameters
credentialsYour access credentials to the HERE platform.

Member Data Documentation

◆ token_endpoint_url

std::string olp::authentication::Settings::token_endpoint_url

(Optional) The server URL of the token endpoint.

Note
Only standard OAuth2 Token URLs (those ending in oauth2/token) are supported.

◆ use_system_time

bool olp::authentication::Settings::use_system_time {true}

Uses system system time in authentication requests rather than requesting time from authentication server.

Default is true, which means system time is used.

Note
Please make sure that the system time does not deviate from the official UTC time as it might result in error responses from the authentication server.

The documentation for this struct was generated from the following file: