10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
OIDCClientCredentialsGrantLogin.h
1#ifndef TENDUKE_OIDC_CCG_OIDCCLIENTCREDENTIALSGRANTLOGIN_H
2#define TENDUKE_OIDC_CCG_OIDCCLIENTCREDENTIALSGRANTLOGIN_H
3
4#include "../session/OIDCLogin.h"
5#include "../../oauth/ccg/OAuthClientCredentialsGrantFlow.h"
6
7#include <map>
8#include <memory>
9#include <string>
10
11namespace tenduke { namespace oidc { namespace ccg {
12
17{
18public:
26 const std::shared_ptr<::tenduke::oauth::ccg::OAuthClientCredentialsGrantFlow> &oauth,
27 const std::string &scope = "",
28 const std::map<std::string, std::string> &additionalParameters = {}
29 );
30
31public:
32 std::unique_ptr<::tenduke::oidc::OIDCLoginRequest> login() const override;
33
34private:
35 const std::shared_ptr<::tenduke::oauth::ccg::OAuthClientCredentialsGrantFlow> oauth;
36 const std::string scope;
37 const std::map<std::string, std::string> additionalParameters;
38};
39
40}}}
41
42#endif //TENDUKE_OIDC_CCG_OIDCCLIENTCREDENTIALSGRANTLOGIN_H
OIDCClientCredentialsLogin(const std::shared_ptr<::tenduke::oauth::ccg::OAuthClientCredentialsGrantFlow > &oauth, const std::string &scope="", const std::map< std::string, std::string > &additionalParameters={})
Constructs new instance.
Definition OIDCClientCredentialsGrantLogin.cpp:19
High-level service to perform OIDC-login.
Definition OIDCLogin.h:13
OIDCClientCredentialsLogin(const std::shared_ptr<::tenduke::oauth::ccg::OAuthClientCredentialsGrantFlow > &oauth, const std::string &scope="", const std::map< std::string, std::string > &additionalParameters={})
Constructs new instance.
Definition OIDCClientCredentialsGrantLogin.cpp:19
std::unique_ptr<::tenduke::oidc::OIDCLoginRequest > login() const override
Starts the login process by creating a login request.
Definition OIDCClientCredentialsGrantLogin.cpp:10
OAuth services.
Definition AccessTokenRequestAuthenticator.h:8
Implementation of OpenID Connect protocol.
Definition AutoDiscovery.h:15
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4