Skip to content

Commit

Permalink
Added additional claims
Browse files Browse the repository at this point in the history
Signed-off-by: H2CK <dev@jagel.net>
  • Loading branch information
H2CK committed Dec 25, 2024
1 parent aa1b04f commit 136e605
Show file tree
Hide file tree
Showing 12 changed files with 111 additions and 75,868 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file.

## [1.2.0] - 2024-12-25

### Changed

- Added support to provide claims family_name, given_name and middle_name JWT and userinfo endpoint
- Updated dependencies
- Updated translations

## [1.1.0] - 2024-12-11

### Changed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ The registration endpoint is accessible for everybody without any authentication
| Scope | Description |
|---|---|
| openid | Default scope. Will be added if missing. Information about the user is provided as user id in the claims `preferred_username` and `sub`. |
| profile | Adds the claims `name`, `address`, `phone_number`, `quota` and `updated_at`to the ID Token. `address` and `phone_number` are only available, if those attributes are set in the users profile in Nextcloud. The claim `name` contains the display name as configured in the users profile in Nextcloud. If no display name is set the username is provided in this claim. The claim `quota` is only contained if a quota is set for the user. The format of the quota is provided as delivered by Nextcloud (e.g. `5 GB`) If enabled in the app settings it is also possible to generate the claim `picture` with users avatar encoded in a data url. Caution: If enabled for the id token this might lead to very large id token, even if the picture size is limited to 64px. |
| profile | Adds the claims `name`, `family_name`, `given_name`, `middle_name`, `address`, `phone_number`, `quota` and `updated_at`to the ID Token. `address` and `phone_number` are only available, if those attributes are set in the users profile in Nextcloud. The claim `name` contains the display name as configured in the users profile in Nextcloud. If no display name is set the username is provided in this claim. The claims `family_name`, `given_name` and `middle_name` are generated from the display name. The generation of those claims is based on the implementation also used by the system address book of Nextcloud. The claim `quota` is only contained if a quota is set for the user. The format of the quota is provided as delivered by Nextcloud (e.g. `5 GB`) If enabled in the app settings it is also possible to generate the claim `picture` with users avatar encoded in a data url. Caution: If enabled for the id token this might lead to very large id token, even if the picture size is limited to 64px. |
| email | Adds the email address of the user to the claim `email`. Furthermore the claim `email_verified` is added. |
| roles | Adds the groups of the user in the claim `roles`. |
| groups | Adds the groups of the user in the claim `groups`. |
Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Full documentation can be found at:
- [Developer Documentation](https://github.com/H2CK/oidc/wiki#developer-documentation)
]]></description>
<version>1.1.0</version>
<version>1.2.0</version>
<licence>agpl</licence>
<author mail="dev@jagel.net" homepage="https://github.com/H2CK/oidc">Thorsten Jagel</author>
<namespace>OIDCIdentityProvider</namespace>
Expand Down
30 changes: 15 additions & 15 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 136e605

Please sign in to comment.