Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roles Validation #32

Open
lrodriguez14 opened this issue May 11, 2022 · 1 comment
Open

Roles Validation #32

lrodriguez14 opened this issue May 11, 2022 · 1 comment

Comments

@lrodriguez14
Copy link

Just want to confirm that Roles Validation is not supported, right?
Is there any chance to add this feature?

It should be great to validate the roles of the user to return an Ok or Error. For example: Let's assume that I have 2 different users (Admin and NormalUser), and I want to access to an application that only admins can use, so if I send a token from the admin user that includes the admin role should return an Ok and if I send a token from a NormalUser without the admin role it should return an error.

@SimonSchneider
Copy link
Owner

Hi,
Currently roles validation is not supported.

I've been mulling this over and I think that it's out of scope for this project. Roles validation is a can of worms that can really add to the complexity and size of this project which I did not envision. If we start doing role validation we should most likely start doing it on path and on X and Y, etc..
Therefore I'd argue role validation is out of scope, at least from my perspective.

Also, I, personally, feel better putting role validation in my actual services.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants