10Duke Enterprise C++ Client
|
#include <DefaultOIDCBrowserFlowAuthenticationRequest.h>
Default browser-based OIDC authentication request.
Public Member Functions | |
DefaultOIDCBrowserFlowAuthenticationRequest (std::unique_ptr< const tenduke::oauth::OAuthBrowserAuthorizationRequest > oauthRequest, const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > &oidcConfiguration, const std::string &nonce, const std::shared_ptr< const tenduke::jwt::JWTParser > &parseJWT) | |
Constructs new instance. | |
std::string | buildAuthenticationRequestUrl () const override |
Creates the initial authenticationrequest URL. | |
std::unique_ptr< tenduke::oidc::OIDCState > | handleCallback (const std::string &redirectURI) const override |
Handles callback: performs consequent actions to authenticate. | |
Public Member Functions inherited from tenduke::oidc::BaseOIDCRequest | |
BaseOIDCRequest (const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > &oidcConfiguration, const std::shared_ptr< const tenduke::jwt::JWTParser > &jwtParser, std::string nonce) | |
Constructs new instance. | |
Additional Inherited Members | |
Protected Member Functions inherited from tenduke::oidc::BaseOIDCRequest | |
virtual std::unique_ptr< tenduke::oidc::OIDCState > | toOIDCState (tenduke::oauth::OAuthState &oauthState) const |
Creates OIDCState from OAuthState. | |
virtual tenduke::oidc::IdToken | parseIdToken (const std::string &serializedIdToken, const std::string &expectedNonce) const |
Parses id token. | |
Protected Attributes inherited from tenduke::oidc::BaseOIDCRequest | |
const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > | oidcConfiguration |
OIDC-configuration. | |
const std::shared_ptr< const tenduke::jwt::JWTParser > | parseJWT |
JWT parser. | |
tenduke::oidc::DefaultOIDCBrowserFlowAuthenticationRequest::DefaultOIDCBrowserFlowAuthenticationRequest | ( | std::unique_ptr< const tenduke::oauth::OAuthBrowserAuthorizationRequest > | oauthRequest, |
const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > & | oidcConfiguration, | ||
const std::string & | nonce, | ||
const std::shared_ptr< const tenduke::jwt::JWTParser > & | parseJWT | ||
) |
Constructs new instance.
oauthRequest | - |
oidcConfiguration | - |
nonce | - |
parseJWT | - |
|
overridevirtual |
Creates the initial authenticationrequest URL.
Navigate browser to this URL.
Implements tenduke::oidc::OIDCBrowserFlowAuthenticationRequest.
|
overridevirtual |
Handles callback: performs consequent actions to authenticate.
See documentation of method tenduke::oauth::OAuthRequest::handleCallback().
The call is synchronous.
redirectURI | this is the redirect-URI to which the OIDC server requested the browser to navigate to after the login was successful or in case of some error. The redirect-URI contains all the necessary parameters to finalize the login |
std::nested_exception | when the there is some nested cause |
tenduke::http::HTTPException | (or subclasses of it) when the server responds with HTTP error status code which does not indicate OAuth-error, e.g. 500 (internal server error) or 404 (not found = wrong endpoint configured) |
tenduke::json::JSONParsingException | when server response is not valid JSON |
tenduke::oauth::OAuthException | when the server response is not what we expected, e.g.
|
tenduke::oauth::OAuthServerError | when the server responds with an error |
tenduke::net::NetworkingException | (or subclasses of it) when networking error occurred, e.g.
|
tenduke::net::URLException | if problem parsing the redirectURI (should not happen, though) |
tenduke::net::MalformedURLException | if the redirectURI is invalid |
Implements tenduke::oidc::OIDCBrowserFlowAuthenticationRequest.