10Duke Enterprise C++ SDK
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
11namespace tenduke { namespace oidc { namespace ropg {
12
17{
18public:
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
33public:
34 std::unique_ptr<::tenduke::oidc::OIDCLoginRequest> login() const override;
35
36private:
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(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
High-level service to perform OIDC-login.
Definition OIDCLogin.h:13
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
std::unique_ptr<::tenduke::oidc::OIDCLoginRequest > login() const override
Starts the login process by creating a login request.
Definition OIDCResourceOwnerPasswordLogin.cpp:10
Implementation of OpenID Connect protocol.
Definition AutoDiscovery.h:15
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4