|
10Duke Scale C++ Client
|
#include <BrowserAuthenticationConfig.h>
Configuration for "default OS-browser"-based authentication.
NOTE: The "default osbowser" authentication requires an HTTP response, which is served after successful login. This response is configured with the 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 page but also do redirects, if wanted. Simple example message:
Public Member Functions | |
| BrowserAuthenticationConfig (std::string oauthClientId, std::string oauthRedirectUri, std::string httpResponseAfterSuccessfulLogin, ::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration={}, std::string scopes={}) | |
| Constructs a new instance. | |
Public Member Functions inherited from tenduke::oidc::BaseOIDCAuthenticationConfig | |
| BaseOIDCAuthenticationConfig (std::string oauthClientId, std::string oauthClientSecret={}, ::tenduke::oidc::OIDCSessionConfiguration oidcSessionConfiguration={}, std::string scopes={}) | |
Public Attributes | |
| const std::string | oauthRedirectURI |
| OAuth redirect-URI. | |
| const std::string | httpResponseAfterSuccessfulLogin |
| HTTP-response which is served after successful login. | |
Public Attributes inherited from tenduke::oidc::BaseOIDCAuthenticationConfig | |
| const std::string | oauthClientId |
| OAuth client id. | |
| const std::string | oauthClientSecret |
| OAuth client secret. | |
| const ::tenduke::oidc::OIDCSessionConfiguration | oidcSessionConfiguration |
| OIDC session configuration. | |
| const std::string | scopes |
| OAuth/OIDC scopes to authorize. | |
|
inline |
Constructs a 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 is 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 a 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. |
| scopes | OAuth scopes to authorize. |
| const std::string tenduke::oidc::osbrowser::BrowserAuthenticationConfig::httpResponseAfterSuccessfulLogin |
HTTP-response which is served after successful login.
IMPORTANT NOTE: This is the 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::oauthRedirectURI |
OAuth redirect-URI.
The value is configured in the OAuth/OIDC backend and must match this parameter. IMPORTANT NOTE: This must start with http://localhost. Example http://localhost/oidc/login.