1#ifndef HA_CLOSURE_ANALYSIS_AUTHENTICATE_H_
2#define HA_CLOSURE_ANALYSIS_AUTHENTICATE_H_
5#include <cjson/cJSON.h>
13#define IBM_DEFAULT_TOKEN_NAME "IBM_TOKEN"
16#define IBM_ACCESS_TOKEN_SIZE 2000
19#define IBM_REFRESH_TOKEN_SIZE 50
22static const char*
IBM_TOKEN_URL =
"https://auth-b2b-twc.ibm.com/connect/token";
CURLcode IBM_Refresh(IBM_AuthHandle_TypeDef *auth_handle)
Obtain a new access token from IBM's EMS.
Definition: authenticate.c:139
int8_t IBM_HandleAuth(IBM_AuthHandle_TypeDef *auth_handle)
Authentication handler for IBM EIS.
Definition: authenticate.c:19
CURLcode IBM_Authenticate(const char *token, IBM_AuthHandle_TypeDef *auth_handle)
Authenticate with IBM's Environmental Intelligence Suite (EIS).
Definition: authenticate.c:62
static const char * IBM_TOKEN_URL
IBM authenticate (token) URL.
Definition: authenticate.h:22
#define IBM_REFRESH_TOKEN_SIZE
Buffer size of hold refresh token.
Definition: authenticate.h:19
#define IBM_ACCESS_TOKEN_SIZE
Buffer size to hold access token.
Definition: authenticate.h:16
IBM token handler.
Definition: authenticate.h:25
time_t token_expiry
Time until token expires.
Definition: authenticate.h:26