All threads / Multiple role based authorization

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Multiple role based authorization

Bruno Wego asked in General

Hello friends, I have a handful of doubts in an interesting senario, I hope can give me a little help.

My application uses angular with ng-token-auth for authentication, angular-permission to control permissions, my backend is configured with devise_token_auth for authentication, authorization with pundit and for different profiles rolify.

I need implement and configure my frontend with roles and permissions using the angular-permission package, at this point I not know the best way to do this.

I need pass the rules and permissions with the user's session? This issue explains a little as it should be.

I would like hear different opinions and experiences. Thanks.

How did you go with this Bruno? I am just about to implement this on a little app I have

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 38,558+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.