AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Functions | Variables
LWAAuthorizationConfiguration.cpp File Reference
#include <rapidjson/document.h>
#include <rapidjson/error/en.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include <AVSCommon/Utils/DeviceInfo.h>
#include <AVSCommon/Utils/JSON/JSONUtils.h>
#include <AVSCommon/Utils/Logger/Logger.h>
#include <acsdkAuthorization/LWA/LWAAuthorizationConfiguration.h>
#include <acsdkAuthorization/private/Logging.h>
Include dependency graph for LWAAuthorizationConfiguration.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::acsdkAuthorization
 
 alexaClientSDK::acsdkAuthorization::lwa
 

Functions

static const std::string alexaClientSDK::acsdkAuthorization::lwa::TAG ("LWAAuthorizationConfiguration")
 String to identify log entries originating from this file. More...
 

Variables

static const std::string alexaClientSDK::acsdkAuthorization::lwa::CONFIG_KEY_LWA_AUTHORIZATION = "lwaAuthorization"
 Name of ConfigurationNode for LWAAuthorization. More...
 
static const std::string alexaClientSDK::acsdkAuthorization::lwa::CONFIG_KEY_LWA_URL = "lwaUrl"
 Name of lwaURL value in CBLAuthDelegate's ConfigurationNode. More...
 
static const std::string alexaClientSDK::acsdkAuthorization::lwa::CONFIG_KEY_REQUEST_TIMEOUT = "requestTimeout"
 Name of requestTimeout value in CBLAuthDelegate's ConfigurationNode. More...
 
static const std::string alexaClientSDK::acsdkAuthorization::lwa::CONFIG_KEY_ACCESS_TOKEN_REFRESH_HEAD_START = "accessTokenRefreshHeadStart"
 Name of accessTokenRefreshHeadStart value in CBLAuthDelegate's ConfigurationNode. More...
 
static const std::string alexaClientSDK::acsdkAuthorization::lwa::CONFIG_KEY_DEVICE_SETTINGS = "deviceSettings"
 Name of ConfigurationNode for deviceSettings. More...
 
static const std::string alexaClientSDK::acsdkAuthorization::lwa::SETTINGS_DEFAULT_SETTINGS_ROOT_KEY = "defaultAVSClientSettings"
 Name of ConfigurationNode for default values under settings. More...
 
static const std::string alexaClientSDK::acsdkAuthorization::lwa::CONFIG_KEY_DEFAULT_LOCALE = "defaultLocale"
 Name of locale value in in deviceSettings's ConfigurationNode. More...
 
static const std::string alexaClientSDK::acsdkAuthorization::lwa::CONFIG_VALUE_DEFAULT_LOCALE = "en-US"
 Default value for settings.locale. More...
 
static const int alexaClientSDK::acsdkAuthorization::lwa::PRIMARY_LOCALE_INDEX = 0
 Index for primary locale in a multilingual locales vector. More...
 
static const char alexaClientSDK::acsdkAuthorization::lwa::JSON_KEY_ALEXA_ALL [] = "alexa:all"
 Key for alexa:all values in JSON sent to LWA. More...
 
static const char alexaClientSDK::acsdkAuthorization::lwa::JSON_KEY_PRODUCT_ID [] = "productID"
 Key for productID values in JSON sent to LWA. More...
 
static const char alexaClientSDK::acsdkAuthorization::lwa::JSON_KEY_PRODUCT_INSTANCE_ATTRIBUTES [] = "productInstanceAttributes"
 Key for productInstanceAttributes values in JSON sent to LWA. More...
 
static const char alexaClientSDK::acsdkAuthorization::lwa::JSON_KEY_DEVICE_SERIAL_NUMBER [] = "deviceSerialNumber"
 Key for deviceSerialNumber values in JSON sent to LWA. More...
 
static const std::chrono::minutes alexaClientSDK::acsdkAuthorization::lwa::DEFAULT_REQUEST_TIMEOUT = std::chrono::minutes(1)
 Default value for configured requestTimeout. More...
 
static const std::chrono::minutes alexaClientSDK::acsdkAuthorization::lwa::DEFAULT_ACCESS_TOKEN_REFRESH_HEAD_START = std::chrono::minutes(10)
 Default value for configured accessTokenRefreshHeadStart. More...
 
static const std::string alexaClientSDK::acsdkAuthorization::lwa::DEFAULT_LWA_BASE_URL = "https://api.amazon.com/auth/O2/"
 Default for configured base URL for LWA requests. More...
 
static const std::string alexaClientSDK::acsdkAuthorization::lwa::REQUEST_CODE_PAIR_PATH = "create/codepair"
 Path suffix for URL used in code pair requests to @C LWA. More...
 
static const std::string alexaClientSDK::acsdkAuthorization::lwa::REQUEST_TOKEN_PATH = "token"
 Path suffix for URL used in code pair token requests to LWA. More...
 
static const std::string alexaClientSDK::acsdkAuthorization::lwa::REFRESH_TOKEN_PATH = "token"
 Path suffix for URl used in token refresh requests to LWA. More...
 
static const std::string alexaClientSDK::acsdkAuthorization::lwa::CUSTOMER_PROFILE_URL = "https://api.amazon.com/user/profile"
 Default for configured base URL for LWA requests. More...
 

AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0