Multiple Authentication with AdonisJS V5 #1463
-
How can you create Role Based Authentication with AdonisJS Version5? When using "npm i @adonisjs/auth@alpha", you are prompted to pick which model you want to use, for example USERS. I would like to expand this functionality to admins. Is this possible, and if so how do you make it happen? Jamie |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
Roles based authorization should be handled using the Authorization layer and not authentication. Users should always authenticate in one way, should live in one table, but assigned different roles. |
Beta Was this translation helpful? Give feedback.
-
@thetutlage, Thanks, |
Beta Was this translation helpful? Give feedback.
-
So I couldn't find an answer at all, and I'm upset about it. Going to a coding boot camp does not prepare you for frameworks such as these. @thetutlage , it would be nice for you entertain this issue, I'm sure I'm not the only one facing this challenge. I believe in this product, and I want to get this issue resolved. Kindly reply with a possible resolution. |
Beta Was this translation helpful? Give feedback.
Roles based authorization should be handled using the Authorization layer and not authentication. Users should always authenticate in one way, should live in one table, but assigned different roles.