Skip to content

Commit

Permalink
If Security setting is Minimal we allow Unauthenticated access to app…
Browse files Browse the repository at this point in the history
…lication, otherwise Password Auth is enabled.
  • Loading branch information
eduard93 committed Feb 11, 2015
1 parent 8709afd commit 41d36f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MDX2JSON/Installer.cls.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ do ##class(MDX2JSON.Installer).setup(.pVars)</Description>
<Implementation><![CDATA[
Set Namespace=tInstaller.Evaluate("${Namespace}")
Do tInstaller.PushNS("%SYS")
Set cspProperties("AutheEnabled") = 64
Do ##class(Security.System).GetInstallationSecuritySetting(.security)
If (security="None") {
Set cspProperties("AutheEnabled") = 64 // Unauthenticated
} Else {
Set cspProperties("AutheEnabled") = 32 // Password
}
Set cspProperties("NameSpace") = Namespace
Set cspProperties("IsNameSpaceDefault") = 1
Set cspProperties("DispatchClass")="MDX2JSON.REST"
Expand Down

0 comments on commit 41d36f4

Please sign in to comment.