10Duke Enterprise C++ Client
|
#include <OIDCDeviceAuthenticationRequest.h>
OIDC Authentication request using OAuth Device Authorization Grant.
Public Member Functions | |
virtual tenduke::oauth::device::DeviceAuthorizationResponse | authenticationRequest ()=0 |
Perform the OAuth Device Authorization Request (wrapping it to OIDC). | |
virtual std::unique_ptr< tenduke::oidc::OIDCState > | accessTokenRequest ()=0 |
Performs OAuth Device Access Token Request, wrapped inside OIDC. | |
virtual void | cancel ()=0 |
Marks the request canceled. | |
|
pure virtual |
Performs OAuth Device Access Token Request, wrapped inside OIDC.
tenduke::Canceled | if the request was canceled by caller |
tenduke::TimedOut | if the request has timed out (either in client or by backend) |
tenduke::http::HTTPException | (or subclasses) in case of HTTPExceptions (e.g. HTTP 500) |
tenduke::json::JSONException | (or subclasses) in case response is not valid JSON (should not happen) |
tenduke::jwt::JWTException | (or subclasses) in case JWT parsing/validation failed |
tenduke::net::NetworkingException | (or subclasses) e.g. no network, invalid hostname, timeouts |
tenduke::oauth::OAuthServerError | if OAuth server returned an error |
tenduke::oauth::OAuthException | if some other OAuth error occurred |
tenduke::oidc::OIDCException | in case some OIDC-related error occurred |
Implemented in tenduke::oidc::device::DefaultOIDCDeviceAuthenticationRequest.
|
pure virtual |
Perform the OAuth Device Authorization Request (wrapping it to OIDC).
tenduke::TimedOut | if the request has timed out (either in client or by backend) |
tenduke::http::HTTPException | (or subclasses) in case of HTTPExceptions (e.g. HTTP 500) |
tenduke::net::NetworkingException | (or subclasses) e.g. no network, invalid hostname, timeouts |
tenduke::oauth::OAuthServerError | if OAuth server returned an error |
tenduke::oauth::OAuthException | if some other OAuth error occurred |
tenduke::oidc::OIDCException | in case some OIDC-related error occurred |
Implemented in tenduke::oidc::device::DefaultOIDCDeviceAuthenticationRequest.
|
pure virtual |
Marks the request canceled.
This will cause the polling to throw tenduke::TimedOut
.
Implemented in tenduke::oidc::device::DefaultOIDCDeviceAuthenticationRequest.