19 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_AUTHOBSERVERINTERFACE_H_ 20 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_AUTHOBSERVERINTERFACE_H_ 26 namespace sdkInterfaces {
64 AUTHORIZATION_EXPIRED,
66 UNSUPPORTED_GRANT_TYPE,
70 AUTHORIZATION_PENDING,
152 return stream <<
"UNINITIALIZED";
154 return stream <<
"REFRESHED";
156 return stream <<
"EXPIRED";
158 return stream <<
"UNRECOVERABLE_ERROR";
160 return stream <<
"AUTHORIZING";
162 return stream <<
"Unknown AuthObserverInterface::State!: " << state;
175 return stream <<
"SUCCESS";
177 return stream <<
"UNKNOWN_ERROR";
179 return stream <<
"AUTHORIZATION_FAILED";
181 return stream <<
"UNAUTHORIZED_CLIENT";
183 return stream <<
"SERVER_ERROR";
185 return stream <<
"INVALID_REQUEST";
187 return stream <<
"INVALID_VALUE";
189 return stream <<
"AUTHORIZATION_EXPIRED";
191 return stream <<
"UNSUPPORTED_GRANT_TYPE";
193 return stream <<
"INVALID_CODE_PAIR";
195 return stream <<
"AUTHORIZATION_PENDING";
197 return stream <<
"SLOW_DOWN";
199 return stream <<
"INTERNAL_ERROR";
201 return stream <<
"INVALID_CBL_CLIENT_ID";
203 return stream <<
"Unknown AuthObserverInterface::Error!: " << error;
210 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_AUTHOBSERVERINTERFACE_H_ The authorization code is invalid, expired, revoked, or was issued to a different client...
An unknown body containing no error field has been encountered.
The client is not authorized to use authorization codes.
std::ostream & operator<<(std::ostream &stream, const AudioInputProcessorObserverInterface::State &state)
Definition: AudioInputProcessorObserverInterface.h:94
The client specified the wrong token type.
The client authorization failed.
avsCommon::sdkInterfaces::AuthObserverInterface::State state
The state.
Definition: AuthObserverInterface.h:82
One of the values in the request was invalid.
State
The enum State describes the state of authorization.
Definition: AuthObserverInterface.h:34
Authorization not yet acquired.
virtual void onAuthStateChange(State newState, Error error)=0
Authorization has been refreshed.
Currently in the process of authorizing, such as requesting or refreshing a token.
Waiting for user to authorize the specified code pair.
Internal error in client code.
Authorization has expired.
bool operator==(const AuthObserverInterface::FullState &lhs, const AuthObserverInterface::FullState &rhs)
Definition: AuthObserverInterface.h:138
Definition: AuthObserverInterface.h:31
The server encountered a runtime error.
An aggregated structure to simplify working with State and Error.
Definition: AuthObserverInterface.h:80
Error
The enum Error encodes possible errors which may occur when changing state.
Definition: AuthObserverInterface.h:48
Authorization failed in a manner that cannot be corrected by retry.
avsCommon::sdkInterfaces::AuthObserverInterface::Error error
The error.
Definition: AuthObserverInterface.h:85
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
FullState()
Constructor.
Definition: AuthObserverInterface.h:118
Invalid code pair provided in Code-based linking token request.
Client ID not valid for use with code based linking.
The request is missing a required parameter, has an invalid value, or is otherwise improperly formed...
Client should slow down in the rate of requests polling for an access token.
virtual ~AuthObserverInterface()=default