10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::oidc::device::DeviceAuthenticationConfig Struct Reference

#include <DeviceAuthenticationConfig.h>

Detailed Description

Configuration for OIDC device authentication.

Inheritance diagram for tenduke::oidc::device::DeviceAuthenticationConfig:
tenduke::oidc::BaseOIDCAuthenticationConfig

Public Member Functions

 DeviceAuthenticationConfig (std::string oauthClientId, oauth::device::OAuthDeviceAuthorizationResponseReceived &callback, ::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration={}, std::string scopes={})
 Constructs a new instance.
 
- Public Member Functions inherited from tenduke::oidc::BaseOIDCAuthenticationConfig
 BaseOIDCAuthenticationConfig (std::string oauthClientId, std::string oauthClientSecret={}, ::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration={}, std::string scopes={})
 

Public Attributes

::tenduke::oauth::device::OAuthDeviceAuthorizationResponseReceivedcallback
 Callback, which gets called when a device authorization response has been received.
 
- Public Attributes inherited from tenduke::oidc::BaseOIDCAuthenticationConfig
const std::string oauthClientId
 OAuth client id.
 
const std::string oauthClientSecret
 OAuth client secret.
 
const ::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration
 OIDC session configuration.
 
const std::string scopes
 OAuth/OIDC scopes to authorize.
 

Constructor & Destructor Documentation

◆ DeviceAuthenticationConfig()

tenduke::oidc::device::DeviceAuthenticationConfig::DeviceAuthenticationConfig ( std::string oauthClientId,
oauth::device::OAuthDeviceAuthorizationResponseReceived & callback,
::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration = {},
std::string scopes = {} )
inline

Constructs a new instance.

Parameters
oauthClientIdOAuth client id. The value configured in the OAuth/OIDC backend and must match this parameter.
callbackCallback, which gets called when device authorization response has been received. See documentation of the interface for rules. TODO: Should this be std::shared_ptr instead?
oidcSessionConfigurationOIDC session configuration. Optional.
scopesOAuth scopes to authorize

The documentation for this struct was generated from the following file: