Devise and cancan examples working with ember js


I use ember js + rails. I wanna to make user authorisation like Devise + Cancan in Rails. All i need is 2 roles : user and admin and i want to implement role and authentication controlling in ember js. All manuals that i found where very old. Mb you can give me some examples of app where such things are done? Thanks for help.

#2 is a library for Ember that implements token auth for your application. It has a detailed tutorial for setting up Devise.

Discourse is a good project to look at too. It doesn’t use Devise but it does implement permissions and roles. Check out the lib/guardian.rb file and how it’s used within the active model serializers.