1#ifndef TENDUKE_OAUTH_ACCESSTOKENREQUESTAUTHENTICATOR_H 
    2#define TENDUKE_OAUTH_ACCESSTOKENREQUESTAUTHENTICATOR_H 
    4#include "http/HTTPRequestAuthenticator.h" 
   27    static std::shared_ptr<tenduke::oauth::AccessTokenRequestAuthenticator> 
createShared(
const std::string &accessToken);
 
   35    std::multimap<std::string, std::string> 
authenticate(
const http::HTTPRequest &request) 
const override;
 
   38    std::multimap<std::string, std::string> headers;
 
 
 
AccessTokenRequestAuthenticator(const std::string &accessToken)
Constructs new instance.
Definition AccessTokenRequestAuthenticator.cpp:7
 
This is a service, that can be added to tenduke::http::HTTPRequest to add authentication information ...
Definition HTTPRequestAuthenticator.h:21
 
static std::shared_ptr< tenduke::oauth::AccessTokenRequestAuthenticator > createShared(const std::string &accessToken)
Helper to create a shared instance.
Definition AccessTokenRequestAuthenticator.cpp:20
 
AccessTokenRequestAuthenticator(const std::string &accessToken)
Constructs new instance.
Definition AccessTokenRequestAuthenticator.cpp:7
 
std::multimap< std::string, std::string > authenticate(const http::HTTPRequest &request) const override
Generates headers to authenticate the rquest.
Definition AccessTokenRequestAuthenticator.cpp:13
 
OAuth services.
Definition AccessTokenRequestAuthenticator.h:8
 
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4