-
-
Notifications
You must be signed in to change notification settings - Fork 61
validateScope and veryifyScope are anti-patterns?! #71
Copy link
Copy link
Closed
Labels
backwards breaking ✂️This change will not work with the current version of the module.This change will not work with the current version of the module.discussion 🗨️Discussion about a particular topic.Discussion about a particular topic.
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
backwards breaking ✂️This change will not work with the current version of the module.This change will not work with the current version of the module.discussion 🗨️Discussion about a particular topic.Discussion about a particular topic.
The model says, we should provide the functions
validateScopeandverifyScope. The implementor has to write a correct function, which filters out invalid or not allowed scopes. This can result in a bad implementation, as the implementor could mess it up.Despite burdening the implementor with the task to write a correct function, the framework should ask for a getScopesOfUser (name disputable), which returns all scopes of the user and the framework will have (well-tested?!) validateScopes and verifyScopes methods which filters out invalid or not allowed scopes.