Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

validateScope and veryifyScope are anti-patterns?! #71

Closed
Labels
backwards breaking ✂️This change will not work with the current version of the module. discussion 🗨️Discussion about a particular topic.
Milestone
@Uzlopak

Description

The model says, we should provide the functions validateScope and verifyScope. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backwards breaking ✂️This change will not work with the current version of the module. discussion 🗨️Discussion about a particular topic.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /