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

How to Pass Role to authenticate.use in Controller #22

Closed
CharnjeetIotasol opened this issue Oct 5, 2017 · 1 comment
Closed

How to Pass Role to authenticate.use in Controller #22

CharnjeetIotasol opened this issue Oct 5, 2017 · 1 comment
Labels

Comments

@CharnjeetIotasol
Copy link

Hello,

I have one question regarding the role. Can you please help me how to add Role based authenticate to api in controller. I want to pass the Role to AuthenticateMiddleware#use function.

@hirsch88
Copy link
Member

hirsch88 commented Nov 2, 2017

Hi,

The AuthenticateMiddleware is not supposed to check roles.

Try to create a new middleware for roles and add them as hooks in the controller.

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

No branches or pull requests

2 participants