Skip to content

Commit 536c382

Browse files
committed
docs: add docs for impersonation mapping
1 parent 323fcb5 commit 536c382

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,23 @@ if (app.Environment.IsDevelopment())
272272
razor.RequireAuthorization();
273273
```
274274

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+
275292
## Staging and Deployment
276293

277294
Setup `deployment` and sync your scripts to the Catglobe site.

0 commit comments

Comments
 (0)