10Duke Enterprise C++ Client
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 <memory>
8
9namespace tenduke { namespace oidc { namespace ropg {
10
15{
16public:
18 const std::string &scope,
19 std::uint32_t maxLoginAttempts,
20 const std::shared_ptr<::tenduke::oidc::ropg::OIDCResourceOwnerPasswordFlow> &oidc
21);
22
23public:
24 std::unique_ptr<::tenduke::oidc::OIDCLoginRequest> login() const override;
25
26private:
27 const std::string scope;
28 const std::uint32_t maxLoginAttempts;
29
30 const std::shared_ptr<::tenduke::oidc::ropg::OIDCResourceOwnerPasswordFlow> oidc;
31};
32
33}}}
34
35#endif //TENDUKE_OIDC_ROPG_OIDCRESOURCEOWNERPASSWORDLOGIN_H
High-level service to perform OIDC-login.
Definition OIDCLogin.h:13
OIDCLogin-service using OIDCResourceOwnerPasswordFlow.
Definition OIDCResourceOwnerPasswordLogin.h:15
std::unique_ptr<::tenduke::oidc::OIDCLoginRequest > login() const override
Starts the login process by creating a login request.
Definition OIDCResourceOwnerPasswordLogin.cpp:10
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4