10Duke Enterprise C++ Client
|
#include <OIDCDeviceFlowLoginRequest.h>
Login request using OIDC with OAuth Device Authorization Grant.
This request implements the full OAuth Device Authorization Grant flow.
The request takes callback, which is called when the Device Authorization Response has been received. The callback should prompt the user to open browser and navigate to given URL.
After the callback finishes, the request starts polling the backend, waiting for the user to authenticate himself out-of-the-band.
Public Member Functions | |
OIDCDeviceFlowLoginRequest (std::unique_ptr< tenduke::oidc::device::OIDCDeviceAuthenticationRequest > request, oauth::device::OAuthDeviceAuthorizationResponseReceived &authorizationResponseReceived) | |
Constructs new instance. | |
std::unique_ptr< tenduke::oidc::OIDCState > | execute () override |
Performs the login. | |
void | abort () override |
Aborts the login. | |
tenduke::oidc::device::OIDCDeviceFlowLoginRequest::OIDCDeviceFlowLoginRequest | ( | std::unique_ptr< tenduke::oidc::device::OIDCDeviceAuthenticationRequest > | request, |
oauth::device::OAuthDeviceAuthorizationResponseReceived & | authorizationResponseReceived | ||
) |
Constructs new instance.
request | - |
authorizationResponseReceived | - |
|
overridevirtual |
Aborts the login.
This allows another thread to abort a dangling login process.
Implements tenduke::oidc::OIDCLoginRequest.
|
overridevirtual |
Performs the login.
Implements tenduke::oidc::OIDCLoginRequest.