10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
tenduke::oidc::BaseOIDCAuthenticationConfig Class Reference
Inheritance diagram for tenduke::oidc::BaseOIDCAuthenticationConfig:
tenduke::oidc::ccg::CCGAuthenticationConfig tenduke::oidc::device::DeviceAuthenticationConfig tenduke::oidc::osbrowser::BrowserAuthenticationConfig tenduke::oidc::ropg::ROPGAuthenticationConfig

Public Member Functions

 BaseOIDCAuthenticationConfig (std::string oauthClientId, std::string oauthClientSecret={}, ::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration={}, std::string scopes={}, std::map< std::string, std::string > attributes={})

Public Attributes

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.

Member Data Documentation

◆ attributes

const std::map<std::string, std::string> tenduke::oidc::BaseOIDCAuthenticationConfig::attributes

Custom attributes, sent to the authorization server as additional request parameters.

The attributes must not use the names of parameters the flow sets itself, otherwise the login fails with std::invalid_argument:

  • Browser (PKCE) flow: response_type, scope, redirect_uri, client_id, state, code_challenge, code_challenge_method, nonce
  • Client credentials grant: grant_type, client_id, client_secret, scope
  • Resource owner password grant: grant_type, client_id, client_secret, scope, username, password
  • Device flow: client_id, scope

◆ oauthClientId

const std::string tenduke::oidc::BaseOIDCAuthenticationConfig::oauthClientId

OAuth client id.

The value configured in the OAuth/OIDC backend and must match this parameter.

◆ oauthClientSecret

const std::string tenduke::oidc::BaseOIDCAuthenticationConfig::oauthClientSecret

OAuth client secret.

The value configured in the OAuth/OIDC backend and must match this parameter. In some cases this is optional and not required.


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