|
10Duke Scale C++ Client
|
Public Member Functions | |
| ROPGAuthenticationConfig (const ::tenduke::oauth::ropg::ResourceOwnerPasswordCredentialsProvider &credentialsProvider, std::string oauthClientId, std::string oauthClientSecret={}, const std::uint32_t maxLoginAttempts=DEFAULT_LOGIN_ATTEMPTS, ::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration={}, std::string scopes={}) | |
| Creates a new instance. | |
| std::uint32_t | getMaxLoginAttempts () const |
| Returns maximum number of login attempts. | |
Public Member Functions inherited from tenduke::oidc::BaseOIDCAuthenticationConfig | |
| BaseOIDCAuthenticationConfig (std::string oauthClientId, std::string oauthClientSecret={}, ::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration={}, std::string scopes={}) | |
Public Attributes | |
| const ::tenduke::oauth::ropg::ResourceOwnerPasswordCredentialsProvider & | credentialsProvider |
| const std::uint32_t | maxLoginAttempts |
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. | |
Static Public Attributes | |
| static constexpr std::uint32_t | DEFAULT_LOGIN_ATTEMPTS = 0 |
| static constexpr std::uint32_t | UNLIMITED_LOGIN_ATTEMPTS = UINT32_MAX |
|
inline |
Creates a new instance.
| credentialsProvider | callback to provide the login credentials when performing authentication |
| oauthClientId | OAuth client id |
| oauthClientSecret | OAuth client secret |
| maxLoginAttempts | maximum number of login attempts. Once all attempts are used up, the operation throws tenduke::oauth::OAuthInvalidGrant. This is per login request. 0 is unlimited. |
| oidcSessionConfiguration | OIDC session configuration |
| scopes | OAuth scopes to request |
|
inline |
Returns maximum number of login attempts.