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

Configures the TokenEndpoint instance. More...

#include <AuthenticationSettings.h>

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

Public Attributes

boost::optional< http::NetworkProxySettingsnetwork_proxy_settings {}
 The configuration settings for the network layer. More...
 
std::shared_ptr< http::Networknetwork_request_handler {nullptr}
 The network instance that is used to internally operate with the HERE platform Services.
 
std::shared_ptr< thread::TaskSchedulertask_scheduler {nullptr}
 The TaskScheduler class that is used to manage the callbacks enqueue. More...
 
std::string token_endpoint_url {kHereAccountProductionUrl}
 The server URL of the token endpoint.
 
size_t token_cache_limit {100u}
 The maximum number of tokens that can be stored in LRU memory cache.
 
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.

Member Data Documentation

◆ network_proxy_settings

boost::optional<http::NetworkProxySettings> olp::authentication::AuthenticationSettings::network_proxy_settings {}

The configuration settings for the network layer.

To remove any existing proxy settings, set to boost::none.

◆ task_scheduler

std::shared_ptr<thread::TaskScheduler> olp::authentication::AuthenticationSettings::task_scheduler {nullptr}

The TaskScheduler class that is used to manage the callbacks enqueue.

If nullptr, all request calls are performed synchronously.

◆ use_system_time

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

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

Default is true, which means that 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: