10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
OAuthInvalidState Class Reference

#include <OAuthInvalidState.h>

Detailed Description

Exception thrown when the redirect URI of an authorization response does not contain "state", or the "state" does not match the authorization request.

The redirect URI is then not a response to this authorization request.

Inheritance diagram for OAuthInvalidState:
tenduke::oauth::OAuthException tenduke::TendukeException

Public Member Functions

 OAuthInvalidState (Phase phase, std::string error, const std::string &errorDescription)
 Constructs new instance.
Public Member Functions inherited from tenduke::oauth::OAuthException
 OAuthException (Phase phase, std::string error, const std::string &errorDescription)
 Constructs new instance.
Phase getPhase () const
 The phase where this exception occurred.
std::string getError () const
 Error code.
std::string getErrorDescription () const
 Error description.
Public Member Functions inherited from tenduke::TendukeException
 TendukeException (const std::string &message)
 Constructs new instance.

Additional Inherited Members

Public Types inherited from tenduke::oauth::OAuthException
enum  Phase { NONE , AUTHORIZATION , TOKEN_REQUEST , REFRESH_REQUEST }
 Phase where this exception occurred.

Constructor & Destructor Documentation

◆ OAuthInvalidState()

tenduke::oauth::OAuthInvalidState::OAuthInvalidState ( Phase phase,
std::string error,
const std::string & errorDescription )
inline

Constructs new instance.

Parameters
phase-
error-
errorDescription-

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