Skip to content

Commit 91d8bc2

Browse files
authored
Merge pull request #200 from aroskanalen/feature/1127-oidc-documentation
1127: Updated oidc internal documentation
2 parents 46af1ba + dde6e9a commit 91d8bc2

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
- [#200](https://github.com/os2display/display-api-service/pull/200)
8+
- Updated oidc internal documentation.
79
- [#205](https://github.com/os2display/display-api-service/pull/205)
810
- Fixed redirecting post requests.
911

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,16 @@ The internal oidc provider gets that user's name, email and tenants from claims.
128128

129129
The claim keys needed are set in the env variables:
130130

131-
- INTERNAL_OIDC_CLAIM_NAME
132-
- INTERNAL_OIDC_CLAIM_EMAIL
133-
- INTERNAL_OIDC_CLAIM_GROUPS
131+
- `INTERNAL_OIDC_CLAIM_NAME`
132+
- `INTERNAL_OIDC_CLAIM_EMAIL`
133+
- `INTERNAL_OIDC_CLAIM_GROUPS`
134+
135+
The value of the claim with the name that is defined in the env variable `INTERNAL_OIDC_CLAIM_GROUPS` is mapped to
136+
the user's access to tenants in `App\Security\AzureOidcAuthenticator`. The claim field should consist of an array of
137+
names that should follow the following structure `<TENANT_NAME><ROLE_IN_TENANT>`.
138+
`<ROLE_IN_TENANT>` can be `Admin` or `Redaktoer` (editor).
139+
E.g. `Example1Admin` will map to the tenant with name `Example1` with `ROLE_ADMIN`.
140+
If the tenant does not exist it will be created when the user logs in.
134141

135142
### External
136143

0 commit comments

Comments
 (0)