10Duke Enterprise C++ Client
|
#include <BrowserAuthenticationConfig.h>
Configuration for "default OS-browser"-based authentication.
NOTE: The "default-osbowser" -authentication requires a HTTP-response, which is served after successful login. This response is configured with field httpResponseAfterSuccessfulLogin. The response is a full HTTP response message, containing status line, headers and message body. Serving an entire response allows the developer to use either static pages but also do redirects, if wanted. Simple example message:
Public Member Functions | |
BrowserAuthenticationConfig (std::string oauthClientId, std::string oauthRedirectUri, std::string httpResponseAfterSuccessfulLogin, const ::tenduke::oidc::OIDCSessionConfiguration &oidcSessionConfiguration={}) | |
Constructs new instance. | |
Public Attributes | |
const std::string | oauthClientId |
OAuth client id. | |
const ::tenduke::oidc::OIDCSessionConfiguration | oidcSessionConfiguration |
Configuration of the OIDCSession-service. | |
const std::string | oauthRedirectURI |
OAuth redirect-URI. | |
const std::string | httpResponseAfterSuccessfulLogin |
HTTP-response which is served after successful login. | |
|
inline |
Constructs new instance.
oauthClientId | OAuth client id. The value configured in the OAuth/OIDC backend and must match this parameter. |
oauthRedirectUri | OAuth redirect-URI. The value configured in the OAuth/OIDC backend and must match this parameter. IMPORTANT NOTE: This must start with http://localhost. Example http://localhost/oidc/login . |
httpResponseAfterSuccessfulLogin | HTTP-response which is served after successful login. IMPORTANT NOTE: This is full HTTP-response, including the status line, headers and the response message body. Rationale: This way you also do HTTP-redirects. |
oidcSessionConfiguration | Configuration of the OIDCSession-service. Optional. |
const std::string tenduke::oidc::osbrowser::BrowserAuthenticationConfig::httpResponseAfterSuccessfulLogin |
HTTP-response which is served after successful login.
IMPORTANT NOTE: This is full HTTP-response, including the status line, headers and the response message body. Rationale: This way you also do HTTP-redirects.
const std::string tenduke::oidc::osbrowser::BrowserAuthenticationConfig::oauthClientId |
OAuth client id.
The value configured in the OAuth/OIDC backend and must match this parameter.
const std::string tenduke::oidc::osbrowser::BrowserAuthenticationConfig::oauthRedirectURI |
OAuth redirect-URI.
The value configured in the OAuth/OIDC backend and must match this parameter. IMPORTANT NOTE: This must start with http://localhost. Example http://localhost/oidc/login
.