1#ifndef TENDUKE_OIDC_ROPG_ROPGAUTHENTICATIONCONFIG_H 
    2#define TENDUKE_OIDC_ROPG_ROPGAUTHENTICATIONCONFIG_H 
    4#include "../BaseOIDCAuthenticationConfig.h" 
    5#include "oauth/ropg/ResourceOwnerPasswordCredentialsProvider.h" 
   13    static const std::uint32_t DEFAULT_LOGIN_ATTEMPTS = 0;
 
   14    static const std::uint32_t UNLIMITED_LOGIN_ATTEMPTS = UINT32_MAX;
 
   28            const ::tenduke::oauth::ropg::ResourceOwnerPasswordCredentialsProvider &credentialsProvider,
 
   29            const std::string &oauthClientId,
 
   30            const std::string &oauthClientSecret = {},
 
   31            const std::uint32_t maxLoginAttempts = DEFAULT_LOGIN_ATTEMPTS,
 
   32            const ::tenduke::oidc::OIDCSessionConfiguration &oidcSessionConfiguration = {},
 
   33            const std::string &scopes = {}
 
   34    ) : BaseOIDCAuthenticationConfig(oauthClientId, oauthClientSecret, oidcSessionConfiguration, scopes)
 
   35      , credentialsProvider(credentialsProvider)
 
   36      , maxLoginAttempts(maxLoginAttempts)
 
 
   45        return (maxLoginAttempts == DEFAULT_LOGIN_ATTEMPTS ? UNLIMITED_LOGIN_ATTEMPTS : maxLoginAttempts);
 
 
   49    const ::tenduke::oauth::ropg::ResourceOwnerPasswordCredentialsProvider &credentialsProvider;
 
   50    const std::uint32_t maxLoginAttempts;
 
 
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.
Definition ROPGAuthenticationConfig.h:27
 
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.
Definition ROPGAuthenticationConfig.h:27
 
std::uint32_t getMaxLoginAttempts() const
Returns maximum number of login attempts.
Definition ROPGAuthenticationConfig.h:43
 
Implementation of OpenID Connect protocol.
Definition AutoDiscovery.h:18
 
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4