File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,24 @@ ClassMethod createSSLConfig(sslConfig As %String = {##class(isc.esia.configurati
105
105
quit sc
106
106
}
107
107
108
+ /// Создать веб-приложение
109
+ /// w $System.Status.GetErrorText(##class(isc.util.ESIAUtils).сreateWebApp())
110
+ ClassMethod сreateWebApp (appName As %String = " /esia" ) As %Status
111
+ {
112
+ set :$e (appName )'=" /" appName = " /" _ appName
113
+ #dim sc As %Status = $$$OK
114
+ new $namespace
115
+ set namespace = $namespace
116
+ set $namespace = " %SYS"
117
+
118
+ set props (" AutheEnabled" ) = $$$AutheUnauthenticated
119
+ set props (" NameSpace" ) = namespace
120
+ set props (" IsNameSpaceDefault" ) = $$$NO
121
+ set props (" DispatchClass" ) = " isc.esia.OAuthREST"
122
+ set sc = ##class (Security.Applications ).Create (appName , .props )
123
+ quit sc
124
+ }
125
+
108
126
/// Удалить данные пакета isc.esia.data.
109
127
/// do ##class(isc.util.ESIAUtils).purgeData()
110
128
ClassMethod purgeData ()
You can’t perform that action at this time.
0 commit comments