Questions tagged [ember-simple-auth]

Ember Simple Auth is a lightweight library for implementing authentication/authorization with Ember.js applications. It has minimal requirements with respect to the application structure, routes etc. With its pluggable strategies it can support all kinds of authentication and authorization mechanisms.

What does it do?

  • it manages a client side session and synchronizes that across tabs/ windows
  • it authenticates users against the application's own server, external providers like Facebook etc.
  • it authorizes requests to the backend server
  • it is easily customizable and extensible

This is only a very brief overview of Ember Simple Auth's features. More detailed docs can be found in the following,

388 questions
0
votes
1 answer

Ember simple auth add token as query parameter in custom authorizer

How I can do to make the authorizer add the token as a query parameter in my requests to the server? For example I have a GET to: http://domain/api/resource And I want the authorizer add the token: http://domain/api/resource?token=TOKEN_DATA
Mario Gomez
  • 139
  • 1
  • 9
0
votes
1 answer

How to use devise token to manually create session using ember-simple-auth 1.0

I have an app that uses ember-simple-auth with the Devise authorizer. When I was on ember-simple-auth v 0.7.x I was able to create a new user model and save it. Then in the success response, use a devise token returned from the serve to manually…
benzo
  • 160
  • 1
  • 6
0
votes
1 answer

ember simple auth invalidate other user

I'm new to ember-simple-auth and I need some help. Say, there are 3 users, User A is Admin, User B and C are User. User C somehow able to hack User B's account and currently is logged in as User B. User B asked User A to reset his password. I want…
0
votes
1 answer

Ember linkedin api auth token issue

I've been working with torii add-on to authenticate via linkedin. I'm able to get the authorization code correctly, but having trouble to get the access token following this official tutorial: If I follow this option, I get the following…
0
votes
1 answer

Missing ember-simple-auth authorization header when not using ember-data

I've just finished upgrading my app to use the jj-abrams branch of ember-simple-auth (soon to be 1.0). It's working great when I use ember data but, for one route, I use Ember.$.getJSON to retrieve chart data directly from the server. In this…
Joe Czucha
  • 4,123
  • 2
  • 20
  • 28
0
votes
1 answer

authentication using ember-simple-auth-devise and rails backend

I am trying to implement a authentication system in ember with the following versions: DEBUG: ------------------------------- ember.debug.js:5378 DEBUG: Ember : 1.13.7 ember.debug.js:5378 DEBUG: Ember Data :…
Ricky Mason
  • 1,838
  • 6
  • 31
  • 60
0
votes
1 answer

ember-simple-auth: Persisting session in localstorage using custom authenticator

Setup: Ember : 2.0.2 Ember Data : 2.0.1 jQuery : 1.11.3 Ember Simple Auth : 1.0.0 (jjAbrams Branch) Ember CLI : 1.13.8 I'm using pretender to mock a server. Usecase: Using a custom authenticator to interface…
Chirag Ravindra
  • 4,760
  • 1
  • 24
  • 35
0
votes
1 answer

How to re-authorize the session for ember-simple-auth-devise when user's email changes

I'm using ember-simple-auth-devise. When a user logs in, the user's email and token are added to the headers of every request. When the user changes his email address, I can update the session's email but this does not propagate to the header as…
Shagymoe
  • 1,296
  • 1
  • 15
  • 22
0
votes
0 answers

Ember Simple Auth when all pages requires authorization

I have website that requires authorization on all its pages. To achieve that there is server that response based on cookie. If there is cookie send ember app, login site otherwise. This allows to facebook like behavior. I am using ember-simple-auth…
Keo
  • 1,143
  • 8
  • 19
0
votes
1 answer

Ember Simple Auth: no need for /login route?

Login form in my app is realized via hidden form (which overlays the page and is displayed through data-toggle). It is nice and user friendly, however the problem occurs when unauthenticated user wants to access protected route - Ember Simple Auth…
yaqwsx
  • 569
  • 1
  • 5
  • 14
0
votes
1 answer

ember set user object based on authenticated user

I have a coffee ordering application and am trying to connect a user to their store. I'm authenticating the user and then setting that user on the session which is based on ember-simple-auth. That part works fine setting a session.currentUser…
awwester
  • 9,623
  • 13
  • 45
  • 72
0
votes
1 answer

Ember configuration issue

I'm trying to configure simple-auth-oauth2 for Ember app. As documentation says http://ember-simple-auth.com/ember-simple-auth-oauth2-api-docs.html Ember Simple Auth OAuth2's configuration object. To change any of these values, set them on the…
Macchiatow
  • 607
  • 10
  • 24
0
votes
1 answer

ember.js: Make AdminRouteMixin from AuthenticatedRouteMixin?

Is there a more elegant way to prevent unauthorized access to an admin-only route than writing this in all of my admin routes? export default Ember.Route.extend(AuthenticatedRouteMixin, { beforeModel: function(){ …
Jordan Arsenault
  • 7,100
  • 8
  • 53
  • 96
0
votes
3 answers

Ember model with session data

I have a problem with ember when I want to use a session data (companyId that is assigned to a user) in a model. I am using ember-cli and ember 0.13.1 with ember-simple-auth. Lets say I have a route called user/profile when I want to show…
0
votes
1 answer

Ember CLI Simple Auth RouteMixins not working

Session is working and no errors are being displayed, but none of the routeMixins are working... I've seem some similar issues and their solutions, but somehow they do not fix mine (or I misunderstood their implementation.) Here is my current…
Deovandski
  • 790
  • 1
  • 8
  • 22