10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
BrowserAuthenticationConfig.h
1#ifndef TENDUKE_OIDC_OSBROWSER_BROWSERAUTHENTICATIONCONFIG_H
2#define TENDUKE_OIDC_OSBROWSER_BROWSERAUTHENTICATIONCONFIG_H
3
4#include "oidc/BaseOIDCAuthenticationConfig.h"
5#include "oidc/session/OIDCSessionConfiguration.h"
6
7#include <string>
8
9namespace tenduke { namespace oidc { namespace osbrowser {
10
34{
35public:
49 std::string oauthClientId,
50 std::string oauthRedirectUri,
53 std::string scopes = {},
54 std::map<std::string, std::string> attributes = {}
55 ) : ::tenduke::oidc::BaseOIDCAuthenticationConfig(
56 std::move(oauthClientId),
57 "",
58 std::move(oidcSessionConfiguration),
59 std::move(scopes),
60 std::move(attributes)
61 )
62 , oauthRedirectURI(std::move(oauthRedirectUri))
64 {}
65
66public:
70 const std::string oauthRedirectURI;
71
77};
78
79}}}
80
81
82#endif //TENDUKE_OIDC_OSBROWSER_BROWSERAUTHENTICATIONCONFIG_H
BrowserAuthenticationConfig(std::string oauthClientId, std::string oauthRedirectUri, std::string httpResponseAfterSuccessfulLogin, ::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration={}, std::string scopes={}, std::map< std::string, std::string > attributes={})
Constructs a new instance.
Definition BrowserAuthenticationConfig.h:48
Definition BaseOIDCAuthenticationConfig.h:12
const std::map< std::string, std::string > attributes
Custom attributes.
Definition BaseOIDCAuthenticationConfig.h:45
const std::string oauthClientId
OAuth client id.
Definition BaseOIDCAuthenticationConfig.h:31
const std::string scopes
OAuth/OIDC scopes to authorize.
Definition BaseOIDCAuthenticationConfig.h:42
const ::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration
OIDC session configuration.
Definition BaseOIDCAuthenticationConfig.h:39
Configuration for tenduke::oidc::OIDCSessionImpl.
Definition OIDCSessionConfiguration.h:16
const std::string httpResponseAfterSuccessfulLogin
HTTP-response which is served after successful login.
Definition BrowserAuthenticationConfig.h:76
const std::string oauthRedirectURI
OAuth redirect-URI.
Definition BrowserAuthenticationConfig.h:70
BrowserAuthenticationConfig(std::string oauthClientId, std::string oauthRedirectUri, std::string httpResponseAfterSuccessfulLogin, ::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration={}, std::string scopes={}, std::map< std::string, std::string > attributes={})
Constructs a new instance.
Definition BrowserAuthenticationConfig.h:48
Services to perform OIDC-login using OS-browser with loopback redirection.
Definition BrowserAuthenticationConfig.h:9
Implementation of OpenID Connect protocol.
Definition AutoDiscovery.h:15
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4