10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
RedirectUriHandler.h
1
#ifndef TENDUKE_OIDC_OSBROWSER_REDIRECTURIHANDLER_H
2
#define TENDUKE_OIDC_OSBROWSER_REDIRECTURIHANDLER_H
3
4
#include "http/server/HTTPRequestHandler.h"
5
6
#include <future>
7
#include <mutex>
8
#include <string>
9
10
namespace
tenduke
{
namespace
oidc
{
namespace
osbrowser
{
11
15
class
RedirectUriHandler
:
public
http::server::HTTPRequestHandler
16
{
17
public
:
22
explicit
RedirectUriHandler
(std::string responseMessage)
23
: responseMessage(std::move(responseMessage)), handled(false)
24
{}
25
29
void
abort
();
30
35
std::future<std::string>
getResult
();
36
37
// tenduke::http::server::HTTPRequestHandler interface
38
public
:
39
void
handle
(
40
http::server::HTTPRequest
request,
41
http::server::HTTPResponse
response
42
)
override
;
43
44
45
private
:
46
const
std::string responseMessage;
47
bool
handled;
48
std::promise<std::string> result;
49
std::mutex lockResult;
50
};
51
52
}}}
53
54
#endif
//TENDUKE_OIDC_OSBROWSER_REDIRECTURIHANDLER_H
tenduke::http::server::HTTPRequestHandler
Service interface for handling a HTTP request.
Definition
HTTPRequestHandler.h:12
tenduke::http::server::HTTPRequest
A HTTP-request parsed by HTTP server.
Definition
HTTPRequest.h:17
tenduke::http::server::HTTPResponse
HTTP-response to be returned by a HTTP server.
Definition
HTTPResponse.h:15
tenduke::oidc::osbrowser::RedirectUriHandler::getResult
std::future< std::string > getResult()
Returns the result.
Definition
RedirectUriHandler.cpp:55
tenduke::oidc::osbrowser::RedirectUriHandler::RedirectUriHandler
RedirectUriHandler(std::string responseMessage)
Constructs new instance.
Definition
RedirectUriHandler.h:22
tenduke::oidc::osbrowser::RedirectUriHandler::abort
void abort()
Aborts.
Definition
RedirectUriHandler.cpp:40
tenduke::oidc::osbrowser::RedirectUriHandler::handle
void handle(http::server::HTTPRequest request, http::server::HTTPResponse response) override
Handles the request.
Definition
RedirectUriHandler.cpp:14
tenduke::oidc::osbrowser
Services to perform OIDC-login using OS-browser with loopback redirection.
Definition
BrowserAuthenticationConfig.h:9
tenduke::oidc
Implementation of OpenID Connect protocol.
Definition
AutoDiscovery.h:18
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
oidc
osbrowser
src
oidc
osbrowser
RedirectUriHandler.h
Generated by
1.17.0