10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
AccessTokenRequestAuthenticator.h
1
#ifndef TENDUKE_OAUTH_ACCESSTOKENREQUESTAUTHENTICATOR_H
2
#define TENDUKE_OAUTH_ACCESSTOKENREQUESTAUTHENTICATOR_H
3
4
#include "http/HTTPRequestAuthenticator.h"
5
6
#include <memory>
7
8
namespace
tenduke
{
namespace
oauth
{
9
13
class
AccessTokenRequestAuthenticator
:
public
tenduke::http::HTTPRequestAuthenticator
14
{
15
public
:
20
explicit
AccessTokenRequestAuthenticator
(
const
std::string& accessToken);
21
27
static
std::shared_ptr<tenduke::oauth::AccessTokenRequestAuthenticator>
createShared
(
const
std::string &accessToken);
28
29
public
:
35
std::multimap<std::string, std::string>
authenticate
(
const
http::HTTPRequest &request)
const override
;
36
37
private
:
38
std::multimap<std::string, std::string> headers;
39
};
40
41
}}
42
43
44
#endif
//TENDUKE_OAUTH_ACCESSTOKENREQUESTAUTHENTICATOR_H
AccessTokenRequestAuthenticator::AccessTokenRequestAuthenticator
AccessTokenRequestAuthenticator(const std::string &accessToken)
Constructs new instance.
Definition
AccessTokenRequestAuthenticator.cpp:7
tenduke::http::HTTPRequestAuthenticator
This is a service, that can be added to tenduke::http::HTTPRequest to add authentication information ...
Definition
HTTPRequestAuthenticator.h:21
tenduke::oauth::AccessTokenRequestAuthenticator::createShared
static std::shared_ptr< tenduke::oauth::AccessTokenRequestAuthenticator > createShared(const std::string &accessToken)
Helper to create a shared instance.
Definition
AccessTokenRequestAuthenticator.cpp:20
tenduke::oauth::AccessTokenRequestAuthenticator::AccessTokenRequestAuthenticator
AccessTokenRequestAuthenticator(const std::string &accessToken)
Constructs new instance.
Definition
AccessTokenRequestAuthenticator.cpp:7
tenduke::oauth::AccessTokenRequestAuthenticator::authenticate
std::multimap< std::string, std::string > authenticate(const http::HTTPRequest &request) const override
Generates headers to authenticate the rquest.
Definition
AccessTokenRequestAuthenticator.cpp:13
tenduke::oauth
OAuth services.
Definition
AccessTokenRequestAuthenticator.h:8
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
oidc
core
src
oauth
AccessTokenRequestAuthenticator.h
Generated by
1.17.0