You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,9 @@ Alternatively use the `App.Authorization.Authorizer#authorize` method, which sho
84
84
85
85
This approach is sketched out here: [shelving-emberjs-was-authorization-in](http://avitevet.blogspot.com.es/2013/01/shelving-emberjs-was-authorization-in.html)
86
86
87
-
You must also have a currentUser at `App.currentUser` for permissions to work.
87
+
There are also some nice ideas presented in this [gist](https://gist.github.com/ivanvanderbyl/4560416) about how to integrate with *cancan* permissions.
88
+
89
+
You must have a `currentUser` on the controller for permissions to work.
88
90
For this a `App.CurrentUserController` is included. On this controller you can set the `currentUserPath` property to the path of your server API that returns the current user.
89
91
It might be useful to return a Guest user, in case no user is logged in.
90
92
@@ -195,7 +197,7 @@ Currently, the BeerCan coffeescript auth modules are not setup to use the `Guard
195
197
196
198
See [railscast: securing an api](http://railscasts.com/episodes/352-securing-an-api?view=asciicast) for a walk-through of what is required...
197
199
198
-
## Authentication lib integrations (future)
200
+
## Auth lib integrations (future)
199
201
200
202
Would be nice to have built-in support for: [ember-auth-rails](https://github.com/heartsentwined/ember-auth-rails) and [pundit](https://github.com/elabs/pundit)
0 commit comments