Skip to content

Commit 41d36f4

Browse files
committed
If Security setting is Minimal we allow Unauthenticated access to application, otherwise Password Auth is enabled.
1 parent 8709afd commit 41d36f4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

MDX2JSON/Installer.cls.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,12 @@ do ##class(MDX2JSON.Installer).setup(.pVars)</Description>
8181
<Implementation><![CDATA[
8282
Set Namespace=tInstaller.Evaluate("${Namespace}")
8383
Do tInstaller.PushNS("%SYS")
84-
Set cspProperties("AutheEnabled") = 64
84+
Do ##class(Security.System).GetInstallationSecuritySetting(.security)
85+
If (security="None") {
86+
Set cspProperties("AutheEnabled") = 64 // Unauthenticated
87+
} Else {
88+
Set cspProperties("AutheEnabled") = 32 // Password
89+
}
8590
Set cspProperties("NameSpace") = Namespace
8691
Set cspProperties("IsNameSpaceDefault") = 1
8792
Set cspProperties("DispatchClass")="MDX2JSON.REST"

0 commit comments

Comments
 (0)