10Duke Enterprise C++ Client
|
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::ResourceOwnerPasswordCredentialsProvider & | credentialsProvider |
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 |
|
inline |
Creates 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.