10Duke Enterprise C++ Client
|
#include <OIDCDeviceFlowLogin.h>
Login service using OIDC with OAuth Device Authorization Grant.
Requests created by this service use callbacks to prompt for user interaction.
Public Member Functions | |
OIDCDeviceFlowLogin (std::string scope, const std::shared_ptr< const tenduke::oidc::device::OIDCDeviceFlow > &oidc, oauth::device::OAuthDeviceAuthorizationResponseReceived &callback) | |
Constructs new instance. | |
std::unique_ptr< tenduke::oidc::OIDCLoginRequest > | login () const override |
Starts the login process by creating a login request. | |
tenduke::oidc::device::OIDCDeviceFlowLogin::OIDCDeviceFlowLogin | ( | std::string | scope, |
const std::shared_ptr< const tenduke::oidc::device::OIDCDeviceFlow > & | oidc, | ||
oauth::device::OAuthDeviceAuthorizationResponseReceived & | callback | ||
) |
Constructs new instance.
scope | OAuth scope to request (the service adds openid-scope automatically, if not present) |
oidc | - |
callback | - |
|
overridevirtual |
Starts the login process by creating a login request.
Execute the login request to perform the login.
You can keep the login request to e.g. abort a long-running login.
Implements tenduke::oidc::OIDCLogin.