Custom Claims #355

Open
opened 2026-03-29 11:16:05 -05:00 by sclark-dev · 1 comment
sclark-dev commented 2026-03-29 11:16:05 -05:00 (Migrated from github.com)

Describe your idea for an enhancement:

It would be useful for certain installations to be able to inject custom claim data into a user. Software like Immich can use OAuth claims to set a user's role and storage quota.

A simple implementation in the form of a textbox that we could write some JSON data into would probably be more than enough. The only validation that would need to be done is to check if the JSON is valid. It would probably be wise to not read in keys that are already managed by VoidAuth.

Describe alternatives you've considered:

I've considered making a middleware that sat between VoidAuth and the other service, but that would kind of defeat the whole point of user claims being easy to configure.

### Describe your idea for an enhancement: It would be useful for certain installations to be able to inject custom claim data into a user. Software like Immich can use OAuth claims to set a user's role and storage quota. A simple implementation in the form of a textbox that we could write some JSON data into would probably be more than enough. The only validation that would need to be done is to check if the JSON is valid. It would probably be wise to not read in keys that are already managed by VoidAuth. ### Describe alternatives you've considered: I've considered making a middleware that sat between VoidAuth and the other service, but that would kind of defeat the whole point of user claims being easy to configure.
spin-drift commented 2026-06-13 20:52:56 -05:00 (Migrated from github.com)

This would be so great. Audiobookshelf also uses claims to set default permissions for users.

This would be so great. Audiobookshelf also uses claims to set default permissions for users.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
adam/gate#355
No description provided.