10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::oidc::IdTokenSessionRequestAuthenticator Class Reference

#include <IdTokenSessionRequestAuthenticator.h>

Detailed Description

A tenduke::http::HTTPRequestAuthenticator, which adds Authorization-header with OAuth ID-token.

This class adds header "Authorization: IdToken id-token-value" -header, extracting the ID-token from the OIDCSession. The scheme (IdToken in the example) is set by the developer in constructor.

Inheritance diagram for tenduke::oidc::IdTokenSessionRequestAuthenticator:
tenduke::http::HTTPRequestAuthenticator

Public Member Functions

 IdTokenSessionRequestAuthenticator (const std::shared_ptr< tenduke::oidc::OIDCSession > &oidcSession, std::string scheme)
 Constructs new instance.
 
std::multimap< std::string, std::string > authenticate (const tenduke::http::HTTPRequest &request) const override
 Returns headers to authenticate the request.
 

Constructor & Destructor Documentation

◆ IdTokenSessionRequestAuthenticator()

tenduke::oidc::IdTokenSessionRequestAuthenticator::IdTokenSessionRequestAuthenticator ( const std::shared_ptr< tenduke::oidc::OIDCSession > &  oidcSession,
std::string  scheme 
)

Constructs new instance.

Parameters
oidcSession-
scheme-

Member Function Documentation

◆ authenticate()

std::multimap< std::string, std::string > tenduke::oidc::IdTokenSessionRequestAuthenticator::authenticate ( const tenduke::http::HTTPRequest request) const
overridevirtual

Returns headers to authenticate the request.

Parameters
request-
Returns
-

Implements tenduke::http::HTTPRequestAuthenticator.


The documentation for this class was generated from the following files: