Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Add logout to central login settings. Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
organom committed Mar 15, 2019
1 parent f87c670 commit 62ab7c6
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ static class Program
private static readonly bool disableDemoServers = Helper.GetConfigurationValue("DisableDemoServers", false);
private static readonly bool advancedSettingsEnabled = Helper.GetConfigurationValue("AdvancedSettingsEnabled", false);
private static readonly bool showZendeskSupport = Helper.GetConfigurationValue("ShowZendeskSupport", false);

private static readonly string centralLoginUrl = Helper.GetConfigurationValue("CentralLoginUrl");
private static readonly bool logoutToCentralLogin = Helper.GetConfigurationValue("LogoutToCentralLogin", false);

private static readonly string customGatekeeper = Helper.GetConfigurationValue("CustomGatekeeper");
private static readonly string customGatekeeperCSS = Helper.GetConfigurationValue("CustomGatekeeperCSS");
Expand Down Expand Up @@ -418,6 +421,10 @@ private static bool ChangeGatekeeperSettings(Dictionary<string, string> gkenv =
jsonObj["DisableDemoServers"] = disableDemoServers;
jsonObj["AdvancedSettingsEnabled"] = advancedSettingsEnabled;
jsonObj["ShowZendeskSupport"] = showZendeskSupport;

if (!string.IsNullOrWhiteSpace(centralLoginUrl))
jsonObj["CentralLoginUrl"] = centralLoginUrl;
jsonObj["LogoutToCentralLogin"] = logoutToCentralLogin;

if (!string.IsNullOrWhiteSpace(proxyAddress))
{
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,19 @@ Please not that all values are text fields
* GatekeeperName

Name of the gatekeeper, will identify the gatekeeper in the mobile app and ui. e.g `Beame Gatekeeper`

* GatekeeperMode

Type of gatekeeper to install. Can be `Gatekeeper` or `CentralLogin`

* LogToFile

Enables the gatekeeper to log to daily log files, located under .beame/logs. Can be `true` or `false`. Default is `true`

* LogLevel

Sets the log level. Can be `DEBUG`, `INFO`, `WARN`, `ERROR` or `FATAL`. Default is `INFO`

* EncryptUserData

Configures gatekeeper option to encrypt user data. Can be `true` or `false`. Default is `true`
Expand Down Expand Up @@ -136,6 +145,15 @@ Please not that all values are text fields

Configures gatekeeper option to show the zendesk support. Can be `true` or `false`. Default is `false`

* CentralLoginUrl

Configures the gatekeeper central login url to use. Empty (default) means to use the beame central login urls

* LogoutToCentralLogin

Configures the gatekeeper to logout always to the central login url instead of the gatekeeper one (page where the user stays after a logout). Can be `true` or `false`. Default is `false`


### Gatekeeper customization

* CustomGatekeeper
Expand Down
3 changes: 3 additions & 0 deletions app.config
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
<add key="DisableDemoServers" value="false"/>
<add key="AdvancedSettingsEnabled" value="false"/>
<add key="ShowZendeskSupport" value="false"/>

<add key="CentralLoginUrl" value=""/> <!-- If not filled, default central login url is used -->
<add key="LogoutToCentralLogin" value="false"/> <!-- makes all logouts redirect the page to the central login, instead of the gatekeeper page -->

<!-- Custom Gatekeeper configuration -->
<add key="CustomGatekeeper" value=""/>
Expand Down

0 comments on commit 62ab7c6

Please sign in to comment.