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
namespace
tenduke
{
namespace
oidc
{
namespace
ropg {
9
13
class
OIDCResourceOwnerPasswordFlow
:
public
::tenduke::oidc::BaseOIDCClient
14
{
15
public
:
23
OIDCResourceOwnerPasswordFlow
(
24
const
std::shared_ptr<const ::tenduke::oidc::OIDCConfiguration> &
oidcConfiguration
,
25
const
std::shared_ptr<const ::tenduke::oauth::ropg::OAuthResourceOwnerPasswordFlow> &oauthClient,
26
const
std::shared_ptr<const ::tenduke::jwt::JWTParser> &jwtParser,
27
const
std::shared_ptr<const ::tenduke::http::HTTPClient> &httpClient
28
);
29
30
public
:
36
virtual
std::unique_ptr<::tenduke::oidc::ropg::OIDCResourceOwnerPasswordRequest>
authenticate
(
const
std::string &scopes)
const
;
37
38
private
:
39
const
std::shared_ptr<const ::tenduke::oauth::ropg::OAuthResourceOwnerPasswordFlow>
oauth
;
40
};
41
42
}}}
43
44
#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)
Constructs new instance.
Definition
OIDCResourceOwnerPasswordFlow.cpp:25
tenduke::oidc::BaseOIDCClient
Base-class for OIDC-clients.
Definition
BaseOIDCClient.h:22
tenduke::oidc::BaseOIDCClient::oidcConfiguration
const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > oidcConfiguration
OIDC-configuration.
Definition
BaseOIDCClient.h:71
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)
Constructs new instance.
Definition
OIDCResourceOwnerPasswordFlow.cpp:25
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::oauth
OAuth services.
Definition
AccessTokenRequestAuthenticator.h:8
tenduke::oidc
Implementation of OpenID Connect protocol.
Definition
AutoDiscovery.h:18
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