Load configuration from a Json object
Login cookie expiration time
The service name
A custom style file embedded in the auth html files
load configuration
auto config = `{ "name": "demo", "style": "some style", "loginTimeoutSeconds": 100, "paths": { "location": "location" } }`.parseJsonString; ServiceConfiguration configuration; configuration.load(config); configuration.name.should.equal("demo"); configuration.style.should.equal("some style"); configuration.loginTimeoutSeconds.should.equal(100); configuration.paths.location.should.equal("location");
Structure used to define a service