10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
OIDCSessionRequestAuthenticator.h
1#ifndef TENDUKE_OIDC_OIDCSESSIONREQUESTAUTHENTICATOR_H
2#define TENDUKE_OIDC_OIDCSESSIONREQUESTAUTHENTICATOR_H
3
4#include "./OIDCSession.h"
5#include "http/HTTPRequestAuthenticator.h"
6
7#include <memory>
8
9namespace tenduke { namespace oidc {
10
17{
18public:
23 explicit OIDCSessionRequestAuthenticator(const std::shared_ptr<tenduke::oidc::OIDCSession> &oidcSession);
24
25public:
26 std::multimap<std::string, std::string> authenticate(const tenduke::http::HTTPRequest &request) const override;
27
28
29private:
30 const std::shared_ptr<tenduke::oidc::OIDCSession> oidcSession;
31};
32
33}}
34
35#endif //TENDUKE_OIDC_OIDCSESSIONREQUESTAUTHENTICATOR_H
OIDCSessionRequestAuthenticator(const std::shared_ptr< tenduke::oidc::OIDCSession > &oidcSession)
Constructs new instance.
Definition OIDCSessionRequestAuthenticator.cpp:6
This is a service, that can be added to tenduke::http::HTTPRequest to add authentication information ...
Definition HTTPRequestAuthenticator.h:21
HTTP-request, which contains all necessary details to construct the request.
Definition HTTPRequest.h:22
std::multimap< std::string, std::string > authenticate(const tenduke::http::HTTPRequest &request) const override
Returns headers to authenticate the request.
Definition OIDCSessionRequestAuthenticator.cpp:11
OIDCSessionRequestAuthenticator(const std::shared_ptr< tenduke::oidc::OIDCSession > &oidcSession)
Constructs new instance.
Definition OIDCSessionRequestAuthenticator.cpp:6
Implementation of OpenID Connect protocol.
Definition AutoDiscovery.h:18
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4