10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
OIDCResourceOwnerPasswordLoginRequest.h
1#ifndef TENDUKE_OIDC_ROPG_OIDCRESOURCEOWNERPASSWORDLOGINREQUEST_H
2#define TENDUKE_OIDC_ROPG_OIDCRESOURCEOWNERPASSWORDLOGINREQUEST_H
3
4#include "./OIDCResourceOwnerPasswordRequest.h"
5#include "oidc/session/OIDCLoginRequest.h"
6#include <cstdint>
7
8namespace tenduke { namespace oidc { namespace ropg {
9
11{
12public:
14 std::unique_ptr<::tenduke::oidc::ropg::OIDCResourceOwnerPasswordRequest> request,
15 std::uint32_t maxLoginAttempts
16 );
17
18 // `tenduke::oidc::OIDCLoginRequest` interface
19public:
20 std::unique_ptr<::tenduke::oidc::OIDCState> execute() override;
21 void abort() override;
22
23private:
24 const std::unique_ptr<::tenduke::oidc::ropg::OIDCResourceOwnerPasswordRequest> request;
25 const std::uint32_t maxLoginAttempts;
26};
27
28}}}
29
30#endif //TENDUKE_OIDC_ROPG_OIDCRESOURCEOWNERPASSWORDLOGINREQUEST_H
Login-request initiated by OIDCLogin-service.
Definition OIDCLoginRequest.h:15
Definition OIDCResourceOwnerPasswordLoginRequest.h:11
std::unique_ptr<::tenduke::oidc::OIDCState > execute() override
Performs the login.
Definition OIDCResourceOwnerPasswordLoginRequest.cpp:12
void abort() override
Aborts the login.
Definition OIDCResourceOwnerPasswordLoginRequest.cpp:32
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4