Skip to content

Commit

Permalink
docs: add docs for impersonation mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
davhdavh committed Dec 11, 2024
1 parent 323fcb5 commit 536c382
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,23 @@ if (app.Environment.IsDevelopment())
razor.RequireAuthorization();
```

### Impersonation during development

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:
```json
"CatglobeApi": {
"ImpersonationMapping": {
"115": 0
}
}
```

`0` means it is mapped to the developer account.

The recommended setup is that the developer has full access to the staging data and that all mapping therefore is set to 0.

In production, the impersonation accounts there can then be set up to have the correct access to users and data.

## Staging and Deployment

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

0 comments on commit 536c382

Please sign in to comment.