10Duke Enterprise C++ SDK
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
11namespace tenduke { namespace oidc { namespace ropg {
12
17{
18public:
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
35public:
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
54private:
55 const std::shared_ptr<const ::tenduke::oauth::ropg::OAuthResourceOwnerPasswordFlow> oauth;
56};
57
58}}}
59
60#endif //TENDUKE_OIDC_ROPG_OIDCRESOURCEOWNERPASSWORDFLOW_H
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
Base-class for OIDC-clients.
Definition BaseOIDCClient.h:23
const std::shared_ptr< const tenduke::oidc::OIDCConfiguration > oidcConfiguration
OIDC-configuration.
Definition BaseOIDCClient.h:74
const std::shared_ptr< tenduke::time::Clock > clock
Clock for validating ID-token time claims.
Definition BaseOIDCClient.h:80
virtual std::unique_ptr<::tenduke::oidc::ropg::OIDCResourceOwnerPasswordRequest > authenticate(const std::string &scopes) const
Authenticates the user.
Definition OIDCResourceOwnerPasswordFlow.cpp:14
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
Implementation of OpenID Connect protocol.
Definition AutoDiscovery.h:17
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4