10Duke Enterprise C++ Client
|
#include <DefaultOIDCDeviceFlow.h>
Default implementation of tenduke::oidc::device::OIDCDeviceFlow
.
Public Member Functions | |
DefaultOIDCDeviceFlow (const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > &oidcConfiguration, const std::shared_ptr< const tenduke::oauth::device::OAuthDeviceFlow > &oauthClient, const std::shared_ptr< const tenduke::jwt::JWTParser > &jwtParser, const std::shared_ptr< const tenduke::http::HTTPClient > &httpClient) | |
Constructs new instance. | |
std::unique_ptr< tenduke::oidc::device::OIDCDeviceAuthenticationRequest > | authenticate (const std::string &scopes) const override |
Creates OIDCRequest which performs the OIDC-authentication. | |
std::unique_ptr< tenduke::oidc::device::OIDCDeviceAuthenticationRequest > | authenticate (const std::string &scopes, const std::map< std::string, std::string > &additionalProperties) const override |
Creates OIDCRequest which performs the OIDC-authentication. | |
Public Member Functions inherited from tenduke::oidc::BaseOIDCClient | |
BaseOIDCClient (const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > &oidcConfiguration, const std::shared_ptr< const tenduke::oauth::OAuthClient > &oauthClient, const std::shared_ptr< const tenduke::jwt::JWTParser > &jwtParser, const std::shared_ptr< const tenduke::http::HTTPClient > &httpClient) | |
Constructs new instance. | |
std::unique_ptr< const tenduke::oidc::OIDCRefreshRequest > | refresh (const std::shared_ptr< tenduke::oidc::OIDCState > &state) const override |
Refreshes the OIDC state. | |
std::string | requestUserinfo (const std::string &accessToken) const override |
Requests user information from "userinfo"-endpoint. | |
Additional Inherited Members | |
Static Protected Member Functions inherited from tenduke::oidc::BaseOIDCClient | |
static std::string | ensureOpenIDScope (const std::string &scopes) |
Checks if provided scopes have openid among them. | |
Protected Attributes inherited from tenduke::oidc::BaseOIDCClient | |
const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > | oidcConfiguration |
OIDC-configuration. | |
const std::shared_ptr< const tenduke::jwt::JWTParser > | parseJWT |
JWT-parse for parsing ID-token. | |
const std::shared_ptr< const tenduke::http::HTTPClient > | http |
HTTP-client. | |
tenduke::oidc::device::DefaultOIDCDeviceFlow::DefaultOIDCDeviceFlow | ( | const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > & | oidcConfiguration, |
const std::shared_ptr< const tenduke::oauth::device::OAuthDeviceFlow > & | oauthClient, | ||
const std::shared_ptr< const tenduke::jwt::JWTParser > & | jwtParser, | ||
const std::shared_ptr< const tenduke::http::HTTPClient > & | httpClient | ||
) |
Constructs new instance.
oidcConfiguration | - |
oauthClient | - |
jwtParser | - |
httpClient | - |
|
overridevirtual |
Creates OIDCRequest which performs the OIDC-authentication.
scopes | scopes to authenticate / authorize |
Implements tenduke::oidc::device::OIDCDeviceFlow.
|
overridevirtual |
Creates OIDCRequest which performs the OIDC-authentication.
scopes | scopes to authenticate / authorize |
additionalProperties | additional properties added to the request |
Implements tenduke::oidc::device::OIDCDeviceFlow.