10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
DeviceAuthenticationConfig Struct Reference

#include <DeviceAuthenticationConfig.h>

Detailed Description

Configuration for OIDC device authentication.

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

Public Member Functions

 DeviceAuthenticationConfig (std::string oauthClientId, oauth::device::OAuthDeviceAuthorizationResponseReceived &callback, ::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration={}, std::string scopes={}, std::map< std::string, std::string > attributes={})
 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={}, std::map< std::string, std::string > attributes={})

Public Attributes

::tenduke::oauth::device::OAuthDeviceAuthorizationResponseReceived & callback
 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.
const std::map< std::string, std::string > attributes
 Custom attributes, sent to the authorization server as additional request parameters.

Constructor & Destructor Documentation

◆ DeviceAuthenticationConfig()

tenduke::oidc::device::DeviceAuthenticationConfig::DeviceAuthenticationConfig ( std::string oauthClientId,
oauth::device::OAuthDeviceAuthorizationResponseReceived & callback,
::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration = {},
std::string scopes = {},
std::map< std::string, std::string > attributes = {} )
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
attributesCustom attributes to send to the authorization server. Must not use the names of parameters the flow sets itself, see BaseOIDCAuthenticationConfig::attributes.

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