mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:53:00 +03:00
🚀 Feature: Force scopes #160
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pkondratev on GitHub.
Feature description
Hello! Thank you so much for the work you've done—the project is fantastic! A big request: could you add a feature allowing clients to forcibly pass certain scopes, even if the client didn't request them?
Pitch
The issue is that the 'groups' scope is only passed when the client requests it, but, for example, OpenGist doesn't request this scope, even though it relies on it if the user is an admin in some groups.
@stonith404 commented on GitHub:
Yes, I agree with @kmendell. OIDC clients should request the scopes that they need.
I'm not using OpenGist but after a quick search it seems like they don't support customizing the claims yet but there is an open feature request https://github.com/thomiceli/opengist/issues/460. Feel free to upvote the issue there.
@kmendell commented on GitHub:
This is something the client should request based on my knowledge. Based on the documentation: https://opengist.io/docs/configuration/oauth-providers.html#openid-connect. The two following config options should be used: