Hey folks, I’m using an oauth provider to manage users for my audiobookshelf (ABS) instance. ABS has support for defining a custom claim to allow some permissioning control that I'd like to take advantage of. It explains the claim's expected content this way:
"""
Advanced Permissions Claim
[claim name input field here]
Name of the OpenID claim that contains advanced permissions for user actions within the application which will apply to non-admin roles (if configured). If the claim is missing from the response, access to ABS will be denied. If a single option is missing, it will be treated as false. Ensure the identity provider's claim matches the expected structure:
{
"canDownload": false,
"canUpload": false,
"canDelete": false,
"canUpdate": false,
"canAccessExplicitContent": false,
"canAccessAllLibraries": false,
"canAccessAllTags": false,
"canCreateEReader": false,
"tagsAreDenylist": false,
"allowedLibraries": [
"5406ba8a-16e1-451d-96d7-4931b0a0d966",
"918fd848-7c1d-4a02-818a-847435a879ca"
],
"allowedTags": [
"ExampleTag",
"AnotherTag",
"ThirdTag"
]
}
"""
I'm unsure of the best way to define this payload in Authentik and make sure it's present when a user logs in. Any hints/help would be appreciated.