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

#include <OIDCSessionRequestAuthenticator.h>

Detailed Description

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

This class adds standard OAuth "Authorization: Bearer access-token-value" -header, extracting the access token from the OIDCSession.

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

Public Member Functions

 OIDCSessionRequestAuthenticator (const std::shared_ptr< tenduke::oidc::OIDCSession > &oidcSession)
 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

◆ OIDCSessionRequestAuthenticator()

tenduke::oidc::OIDCSessionRequestAuthenticator::OIDCSessionRequestAuthenticator ( const std::shared_ptr< tenduke::oidc::OIDCSession > &  oidcSession)
explicit

Constructs new instance.

Parameters
oidcSession-

Member Function Documentation

◆ authenticate()

std::multimap< std::string, std::string > tenduke::oidc::OIDCSessionRequestAuthenticator::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: