TurnkeySettings
No edit summary
(Adding page to Category:TOC because it contains a TOC.)
 
(21 intermediate revisions by 5 users not shown)
Line 1: Line 1:
=== Introduction ===
=== Introduction ===
The TurnkeySettings.xml is a settings file in the App_Data folder of the Turnkey application. This file holds a number of settings that control the behavior of your application.
The TurnkeySettings.xml is a settings file in the App_Data folder of the Turnkey application. This file holds several settings that control the behavior of your application. Consider putting your [[OpenID config]] here.


=== Using the portal ===
=== Using the Portal ===
The TurnkeySettings.xml is recreated for your application by the portal.mdriven.net when you press SendSettingsAndRestart. The TurnkeySettings is thus normally a generated file based on the settings you have given your application in portal.mdriven.net.
The TurnkeySettings.xml is recreated for your application by the portal.mdriven.net when you press SendSettingsAndRestart. The TurnkeySettings is thus a usually generated file based on the settings you have given your application in portal.mdriven.net.


==== Local installation (not using the portal) ====
==== Local Installation (not using the Portal) ====
When you have a standalone or local installation that the portal cannot reach you will need to supply this file yourself.
When you have a standalone or local installation that the Portal cannot reach, you need to supply this file yourself.
 
==== TurnkeySettingsOverride.xml ====
From October 15:th we allow for a TurnkeySettingsOverride.xml that will be '''read after the TurnkeySettings.xml''' file is read.
 
Use case for this is to for example add your GraphAPI/OpenID config settings in this file since this file will not be overwritten when you refresh the TurnkeyCore installation.


==== TurnkeySettingsExtra.xml ====
==== TurnkeySettingsExtra.xml ====
Starting from July 2019 we allow for a TurnkeySettingsExtra.xml file to be created.
From July 2019, we allow for a TurnkeySettingsExtra.xml file to be created.
 
This file will not be touched/created by the Portal. The TurnkeySettingsExtra.xml will be '''read before the TurnkeySettings.xml''' file is read.
 
The use-case for TurnkeySettingsExtra.xml is that you may have settings local to your application that the Portal does not know about - like experimental or new settings not available in the Portal.
 
One such example at the time of writing is the [[ORCID]] authentication settings that we believe very few will use and thus should neither consume portal space nor increase portal complexity for the user.
 
There is also a TurnkeySettingsOverride - same as above - read AFTER TurnkeySettings.
 
Furthermore, the TurnkeySettingsExtra allows to set the local app name - not overwritten by SendSettings:
<ApplicationNameAsMenu>false</ApplicationNameAsMenu>  -- this prevent the ApplicationName to be added as a index link after the AppLogo in the menubar
 
==== Some of the Settings Available in the TurnkeySettings.xml file ====
<HidePasswordLogin>False</HidePasswordLogin>  Read more: [[Documentation:Hide Password login|Hide Password login]]
 
<HideExternalLogin>False</HideExternalLogin>  Read more: [[Documentation:HideExternalLogin|Hide External Login]]
 
<AllowUserToChooseSocialLoginEmail>True</AllowUserToChooseSocialLoginEmail>
 
<SkipExternalAccountConfirmationScreen>False</SkipExternalAccountConfirmationScreen>
 
<UseCSSGridByDefault>True</UseCSSGridByDefault>
 
<HideRegistration>True</HideRegistration>
 
<CurrentUserViewModel>
name of viewmodel to bring up when user click logged in name
</CurrentUserViewModel>
<TurnOffOWINButKeepSignalR>true/false(default)</TurnOffOWINButKeepSignalR>  Needed when using Windows Auth in IIS but still want to use SignalR, available from 2023-10-17
 
<RemoveTurnkeyAppAfterMinutes>10</RemoveTurnkeyAppAfterMinutes>  // this is how long a Turnkey session can be gone from net before being target for close down (user will loose unsaved changes)
 
<NumberOfTurnkeyEcoSpacesToKeepWhenFree>10</NumberOfTurnkeyEcoSpacesToKeepWhenFree> // this controls how many EcoSpaces we prepare in advance to use, and how many we keep when they are not needed (controls memory and load speed)


This file will not be touched / created by the portal. The TurnkeySettingsExtra.xml will be read prior to the TurnkeySettings.xml file is read.
<TurnkeyTimeoutMinutes>1</TurnkeyTimeoutMinutes> // this controls how long a client screen will continue to show the UI if there is no user interaction


The use-case for TurnkeySettingsExtra.xml is that you may have settings local to your application that the portal does not know about - like experimental or new settings not available in portal.
<AdvancedTables>true</AdvancedTables> // Turnkey DataGrid now lets user resize column heads


One such example at the time of writing is the [[ORCID]] authentication settings that we suspect will be used by very few and thus should not consume portal space and should not increase portal complexity for the user.
<TableColumnsExcludeNames>ColumnName1,ColumnName2</TableColumnsExcludeNames> // When rendering DataGrids you can filter out columns - added as fix to remove "Dummy" column used as a remedy for WPF right adjusted (numbers) columns that was last in the grid ended up at the far right of the screen and users missed it - so developer added a blank dummy column - but this confuse user when using AdvancedTables
[[Category:MDriven Turnkey]]
[[Category:MDriven Turnkey]]


==== Some of settings available in the TurnkeySettings.xml file ====
===== ShowDebugInfo =====
<HidePasswordLogin>
When True collects and makes a lot more information available
  False
</HidePasswordLogin>


<AllowUserToChooseSocialLoginEmail>
'''Warning:''' This will make the TK server slower and use more memory!
  True
</AllowUserToChooseSocialLoginEmail>


<SkipExternalAccountConfirmationScreen>
See also [[Documentation:OpenID_config]]
  False
{{Edited|July|12|2024}}
</SkipExternalAccountConfirmationScreen>


<UseCSSGridByDefault>
[[Category:TOC]]
  True
</UseCSSGridByDefault>

Latest revision as of 14:14, 26 March 2024

Introduction

The TurnkeySettings.xml is a settings file in the App_Data folder of the Turnkey application. This file holds several settings that control the behavior of your application. Consider putting your OpenID config here.

Using the Portal

The TurnkeySettings.xml is recreated for your application by the portal.mdriven.net when you press SendSettingsAndRestart. The TurnkeySettings is thus a usually generated file based on the settings you have given your application in portal.mdriven.net.

Local Installation (not using the Portal)

When you have a standalone or local installation that the Portal cannot reach, you need to supply this file yourself.

TurnkeySettingsOverride.xml

From October 15:th we allow for a TurnkeySettingsOverride.xml that will be read after the TurnkeySettings.xml file is read.

Use case for this is to for example add your GraphAPI/OpenID config settings in this file since this file will not be overwritten when you refresh the TurnkeyCore installation.

TurnkeySettingsExtra.xml

From July 2019, we allow for a TurnkeySettingsExtra.xml file to be created.

This file will not be touched/created by the Portal. The TurnkeySettingsExtra.xml will be read before the TurnkeySettings.xml file is read.

The use-case for TurnkeySettingsExtra.xml is that you may have settings local to your application that the Portal does not know about - like experimental or new settings not available in the Portal.

One such example at the time of writing is the ORCID authentication settings that we believe very few will use and thus should neither consume portal space nor increase portal complexity for the user.

There is also a TurnkeySettingsOverride - same as above - read AFTER TurnkeySettings.

Furthermore, the TurnkeySettingsExtra allows to set the local app name - not overwritten by SendSettings:

<ApplicationNameAsMenu>false</ApplicationNameAsMenu>  -- this prevent the ApplicationName to be added as a index link after the AppLogo in the menubar

Some of the Settings Available in the TurnkeySettings.xml file

<HidePasswordLogin>False</HidePasswordLogin>  Read more: Hide Password login
<HideExternalLogin>False</HideExternalLogin>  Read more: Hide External Login
<AllowUserToChooseSocialLoginEmail>True</AllowUserToChooseSocialLoginEmail>
<SkipExternalAccountConfirmationScreen>False</SkipExternalAccountConfirmationScreen>
<UseCSSGridByDefault>True</UseCSSGridByDefault>
<HideRegistration>True</HideRegistration>
<CurrentUserViewModel>
name of viewmodel to bring up when user click logged in name
</CurrentUserViewModel>

<TurnOffOWINButKeepSignalR>true/false(default)</TurnOffOWINButKeepSignalR>  Needed when using Windows Auth in IIS but still want to use SignalR, available from 2023-10-17
<RemoveTurnkeyAppAfterMinutes>10</RemoveTurnkeyAppAfterMinutes>  // this is how long a Turnkey session can be gone from net before being target for close down (user will loose unsaved changes) 
<NumberOfTurnkeyEcoSpacesToKeepWhenFree>10</NumberOfTurnkeyEcoSpacesToKeepWhenFree> // this controls how many EcoSpaces we prepare in advance to use, and how many we keep when they are not needed (controls memory and load speed)
<TurnkeyTimeoutMinutes>1</TurnkeyTimeoutMinutes> // this controls how long a client screen will continue to show the UI if there is no user interaction
<AdvancedTables>true</AdvancedTables> // Turnkey DataGrid now lets user resize column heads
<TableColumnsExcludeNames>ColumnName1,ColumnName2</TableColumnsExcludeNames> // When rendering DataGrids you can filter out columns - added as fix to remove "Dummy" column used as a remedy for WPF right adjusted (numbers) columns that was last in the grid ended up at the far right of the screen and users missed it - so developer added a blank dummy column - but this confuse user when using AdvancedTables
ShowDebugInfo

When True collects and makes a lot more information available

Warning: This will make the TK server slower and use more memory!

See also Documentation:OpenID_config

This page was edited 48 days ago on 03/26/2024. What links here