10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
OIDCResourceOwnerPasswordLogin.h
1
#ifndef TENDUKE_OIDC_ROPG_OIDCRESOURCEOWNERPASSWORDLOGIN_H
2
#define TENDUKE_OIDC_ROPG_OIDCRESOURCEOWNERPASSWORDLOGIN_H
3
4
#include "../session/OIDCLogin.h"
5
#include "./OIDCResourceOwnerPasswordFlow.h"
6
7
#include <map>
8
#include <memory>
9
#include <string>
10
11
namespace
tenduke
{
namespace
oidc
{
namespace
ropg {
12
16
class
OIDCResourceOwnerPasswordLogin
:
public
::tenduke::oidc::OIDCLogin
17
{
18
public
:
26
OIDCResourceOwnerPasswordLogin
(
27
const
std::string &scope,
28
std::uint32_t maxLoginAttempts,
29
const
std::shared_ptr<::tenduke::oidc::ropg::OIDCResourceOwnerPasswordFlow> &oidc,
30
const
std::map<std::string, std::string> &additionalParameters = {}
31
);
32
33
public
:
34
std::unique_ptr<::tenduke::oidc::OIDCLoginRequest>
login
()
const override
;
35
36
private
:
37
const
std::string scope;
38
const
std::uint32_t maxLoginAttempts;
39
40
const
std::shared_ptr<::tenduke::oidc::ropg::OIDCResourceOwnerPasswordFlow> oidc;
41
const
std::map<std::string, std::string> additionalParameters;
42
};
43
44
}}}
45
46
#endif
//TENDUKE_OIDC_ROPG_OIDCRESOURCEOWNERPASSWORDLOGIN_H
OIDCResourceOwnerPasswordLogin::OIDCResourceOwnerPasswordLogin
OIDCResourceOwnerPasswordLogin(const std::string &scope, std::uint32_t maxLoginAttempts, const std::shared_ptr<::tenduke::oidc::ropg::OIDCResourceOwnerPasswordFlow > &oidc, const std::map< std::string, std::string > &additionalParameters={})
Constructs new instance.
Definition
OIDCResourceOwnerPasswordLogin.cpp:19
tenduke::oidc::OIDCLogin
High-level service to perform OIDC-login.
Definition
OIDCLogin.h:13
tenduke::oidc::ropg::OIDCResourceOwnerPasswordLogin::OIDCResourceOwnerPasswordLogin
OIDCResourceOwnerPasswordLogin(const std::string &scope, std::uint32_t maxLoginAttempts, const std::shared_ptr<::tenduke::oidc::ropg::OIDCResourceOwnerPasswordFlow > &oidc, const std::map< std::string, std::string > &additionalParameters={})
Constructs new instance.
Definition
OIDCResourceOwnerPasswordLogin.cpp:19
tenduke::oidc::ropg::OIDCResourceOwnerPasswordLogin::login
std::unique_ptr<::tenduke::oidc::OIDCLoginRequest > login() const override
Starts the login process by creating a login request.
Definition
OIDCResourceOwnerPasswordLogin.cpp:10
tenduke::oidc
Implementation of OpenID Connect protocol.
Definition
AutoDiscovery.h:15
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
oidc
core
src
oidc
ropg
OIDCResourceOwnerPasswordLogin.h
Generated by
1.17.0