10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::oidc::ropg::ROPGAuthenticationConfig Class Reference
Inheritance diagram for tenduke::oidc::ropg::ROPGAuthenticationConfig:
tenduke::oidc::BaseOIDCAuthenticationConfig

Public Member Functions

 ROPGAuthenticationConfig (const ::tenduke::oauth::ropg::ResourceOwnerPasswordCredentialsProvider &credentialsProvider, const std::string &oauthClientId, const std::string &oauthClientSecret={}, const std::uint32_t maxLoginAttempts=DEFAULT_LOGIN_ATTEMPTS, const ::tenduke::oidc::OIDCSessionConfiguration &oidcSessionConfiguration={}, const std::string &scopes={})
 Creates new instance.
 
std::uint32_t getMaxLoginAttempts () const
 Returns maximum number of login attempts.
 
- Public Member Functions inherited from tenduke::oidc::BaseOIDCAuthenticationConfig
 BaseOIDCAuthenticationConfig (const std::string &oauthClientId, const std::string &oauthClientSecret={}, const ::tenduke::oidc::OIDCSessionConfiguration &oidcSessionConfiguration={}, const std::string scopes={})
 

Public Attributes

const ::tenduke::oauth::ropg::ResourceOwnerPasswordCredentialsProvidercredentialsProvider
 
const std::uint32_t maxLoginAttempts
 
- Public Attributes inherited from tenduke::oidc::BaseOIDCAuthenticationConfig
const std::string oauthClientId
 
const std::string oauthClientSecret
 
const ::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration
 
const std::string scopes
 

Static Public Attributes

static const std::uint32_t DEFAULT_LOGIN_ATTEMPTS = 0
 
static const std::uint32_t UNLIMITED_LOGIN_ATTEMPTS = UINT32_MAX
 

Constructor & Destructor Documentation

◆ ROPGAuthenticationConfig()

tenduke::oidc::ropg::ROPGAuthenticationConfig::ROPGAuthenticationConfig ( const ::tenduke::oauth::ropg::ResourceOwnerPasswordCredentialsProvider credentialsProvider,
const std::string &  oauthClientId,
const std::string &  oauthClientSecret = {},
const std::uint32_t  maxLoginAttempts = DEFAULT_LOGIN_ATTEMPTS,
const ::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration = {},
const std::string &  scopes = {} 
)
inline

Creates new instance.

Parameters
credentialsProvidercallback to provide the login credentials, when performing authentication
oauthClientIdOAuth client id
oauthClientSecretOAuth client secret
maxLoginAttemptsmaximum number of login attempts. Once all attempts are used up, the operation throws tenduke::oauth::OAuthInvalidGrant. This is per login request. 0 is unlimited.
oidcSessionConfigurationOIDC session configuration
scopesOAuth scopes to request

Member Function Documentation

◆ getMaxLoginAttempts()

std::uint32_t tenduke::oidc::ropg::ROPGAuthenticationConfig::getMaxLoginAttempts ( ) const
inline

Returns maximum number of login attempts.

Returns
the maximum number of login attempts

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