10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
OIDCResourceOwnerPasswordFlow.h
1
#ifndef TENDUKE_OIDC_ROPG_OIDCRESOURCEOWNERPASSWORDFLOW_H
2
#define TENDUKE_OIDC_ROPG_OIDCRESOURCEOWNERPASSWORDFLOW_H
3
4
#include "./OIDCResourceOwnerPasswordRequest.h"
5
#include "../../oauth/ropg/OAuthResourceOwnerPasswordFlow.h"
6
#include "oidc/impl/BaseOIDCClient.h"
7
8
#include <map>
9
#include <string>
10
11
namespace
tenduke
{
namespace
oidc
{
namespace
ropg {
12
16
class
OIDCResourceOwnerPasswordFlow
:
public
::tenduke::oidc::BaseOIDCClient
17
{
18
public
:
27
OIDCResourceOwnerPasswordFlow
(
28
const
std::shared_ptr<const ::tenduke::oidc::OIDCConfiguration> &
oidcConfiguration
,
29
const
std::shared_ptr<const ::tenduke::oauth::ropg::OAuthResourceOwnerPasswordFlow> &oauthClient,
30
const
std::shared_ptr<const ::tenduke::jwt::JWTParser> &jwtParser,
31
const
std::shared_ptr<const ::tenduke::http::HTTPClient> &httpClient,
32
const
std::shared_ptr<::tenduke::time::Clock> &
clock
33
);
34
35
public
:
41
virtual
std::unique_ptr<::tenduke::oidc::ropg::OIDCResourceOwnerPasswordRequest>
authenticate
(
const
std::string &scopes)
const
;
42
49
virtual
std::unique_ptr<::tenduke::oidc::ropg::OIDCResourceOwnerPasswordRequest>
authenticate
(
50
const
std::string &scopes,
51
const
std::map<std::string, std::string> &additionalParameters
52
)
const
;
53
54
private
:
55
const
std::shared_ptr<const ::tenduke::oauth::ropg::OAuthResourceOwnerPasswordFlow> oauth;
56
};
57
58
}}}
59
60
#endif
//TENDUKE_OIDC_ROPG_OIDCRESOURCEOWNERPASSWORDFLOW_H
OIDCResourceOwnerPasswordFlow::OIDCResourceOwnerPasswordFlow
OIDCResourceOwnerPasswordFlow(const std::shared_ptr< const ::tenduke::oidc::OIDCConfiguration > &oidcConfiguration, const std::shared_ptr< const ::tenduke::oauth::ropg::OAuthResourceOwnerPasswordFlow > &oauthClient, const std::shared_ptr< const ::tenduke::jwt::JWTParser > &jwtParser, const std::shared_ptr< const ::tenduke::http::HTTPClient > &httpClient, const std::shared_ptr<::tenduke::time::Clock > &clock)
Constructs new instance.
Definition
OIDCResourceOwnerPasswordFlow.cpp:35
tenduke::oidc::BaseOIDCClient
Base-class for OIDC-clients.
Definition
BaseOIDCClient.h:23
tenduke::oidc::BaseOIDCClient::oidcConfiguration
const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > oidcConfiguration
OIDC-configuration.
Definition
BaseOIDCClient.h:74
tenduke::oidc::BaseOIDCClient::clock
const std::shared_ptr< tenduke::time::Clock > clock
Clock for validating ID-token time claims.
Definition
BaseOIDCClient.h:80
tenduke::oidc::ropg::OIDCResourceOwnerPasswordFlow::authenticate
virtual std::unique_ptr<::tenduke::oidc::ropg::OIDCResourceOwnerPasswordRequest > authenticate(const std::string &scopes) const
Authenticates the user.
Definition
OIDCResourceOwnerPasswordFlow.cpp:14
tenduke::oidc::ropg::OIDCResourceOwnerPasswordFlow::OIDCResourceOwnerPasswordFlow
OIDCResourceOwnerPasswordFlow(const std::shared_ptr< const ::tenduke::oidc::OIDCConfiguration > &oidcConfiguration, const std::shared_ptr< const ::tenduke::oauth::ropg::OAuthResourceOwnerPasswordFlow > &oauthClient, const std::shared_ptr< const ::tenduke::jwt::JWTParser > &jwtParser, const std::shared_ptr< const ::tenduke::http::HTTPClient > &httpClient, const std::shared_ptr<::tenduke::time::Clock > &clock)
Constructs new instance.
Definition
OIDCResourceOwnerPasswordFlow.cpp:35
tenduke::oidc
Implementation of OpenID Connect protocol.
Definition
AutoDiscovery.h:17
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
oidc
core
src
oidc
ropg
OIDCResourceOwnerPasswordFlow.h
Generated by
1.17.0