You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <param name="impersonationMapping">Mapping of impersonations to development time users. 0 maps to developer account, missing maps to original</param>
Copy file name to clipboardExpand all lines: README.md
+72-26Lines changed: 72 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,20 +21,21 @@ Runtime requires the user to log in to the Catglobe site, and then the server wi
21
21
22
22
Adjust the following cgscript with the parentResourceId, clientId, clientSecret and name of the client and the requested scopes for your purpose and execute it on your Catglobe site.
23
23
```cgscript
24
-
number parentResourceId = 42; //for this library to work, this MUST be a folder
25
-
string clientId = "some id, a guid works, but any string is acceptable"; //use your own id -> store this in appsettings.json
26
-
bool canKeepSecret = true; //demo is a server app, so we can keep secrets
@@ -162,13 +165,16 @@ This app does NOT need to be a asp.net app, it can be a console app. e.g. if you
162
165
Adjust the following cgscript with the impersonationResourceId, parentResourceId, clientId, clientSecret and name of the client for your purpose and execute it on your Catglobe site.
163
166
You should not adjust scope for this.
164
167
```cgscript
165
-
number parentResourceId = 42;
166
-
string clientId = "DA431000-F318-4C55-9458-96A5D659866F"; //use your own id
167
-
string clientSecret = "verysecret";
168
-
number impersonationResourceId = User_getCurrentUser().ResourceId;
169
-
Array scopes = {"scriptdeployment:w"};
170
-
LocalizedString name = new LocalizedString({"da-DK": "Min Demo App", "en-US": "My Demo App"}, "en-US");
If you have an app that respondents needs to use, you can use the following code to make sure that the user is authenticated via a qas, so they can use the app without additional authentication.
@@ -212,7 +262,7 @@ At this stage the scripts are NOT synced to the server, but are instead dynamica
212
262
213
263
The authentication model is therefore that the developer logs into the using his own personal account. This account needs to have the questionnaire script dynamic execution access (plus any access required by the script).
214
264
215
-
All scripts are executed as the developer account and impersonation or public scripts are not supported!
265
+
All scripts are executed as the developer account and public scripts are not supported without authentication!
216
266
217
267
If you have any public scripts, it is highly recommended you configure the entire site for authorization in development mode:
218
268
```csharp
@@ -256,10 +306,6 @@ Since all scripts are dynamically generated during development, it also requires
256
306
257
307
See the example above on how to force the site to always force you to login after restart of site.
258
308
259
-
## impersonation is ignored during development
260
-
261
-
During development all scripts are executed as the developer account, therefore impersonation or public scripts are not supported!
262
-
263
309
## Where do I find the scopes that my site supports?
264
310
265
311
See supported scopes in your Catglobe site `https://mysite.catglobe.com/.well-known/openid-configuration` under `scopes_supported`.
0 commit comments