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
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -272,6 +272,23 @@ if (app.Environment.IsDevelopment())
272
272
razor.RequireAuthorization();
273
273
```
274
274
275
+
### Impersonation during development
276
+
277
+
If you want to seperate the development and production/staging accounts, you can use the following code to map impersonation to a different user during development:
278
+
```json
279
+
"CatglobeApi": {
280
+
"ImpersonationMapping": {
281
+
"115": 0
282
+
}
283
+
}
284
+
```
285
+
286
+
`0` means it is mapped to the developer account.
287
+
288
+
The recommended setup is that the developer has full access to the staging data and that all mapping therefore is set to 0.
289
+
290
+
In production, the impersonation accounts there can then be set up to have the correct access to users and data.
291
+
275
292
## Staging and Deployment
276
293
277
294
Setup `deployment` and sync your scripts to the Catglobe site.
0 commit comments