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
2
votes
1 answer

Why must I lookup store on my simple-auth custom session instead of injecting it as a service?

I have a initializer like this: import Ember from 'ember'; import Session from 'simple-auth/session'; var SessionWithCurrentUser = Session.extend({ store: Ember.inject.service(), currentUser: function() { console.log(this.get('store')); …
Kit Sunde
  • 35,972
  • 25
  • 125
  • 179
2
votes
1 answer

Using ember-simple-auth and torii, modal never closes and session never updates despite successful server response

I'm attempting to allow multiple oauth providers using ember-cli, ember-simple-auth, torii and devise on my rails backend. Everything seems to work, but the modal never closes and the session in the client is never updated. Steps to repro: Click…
inknerd
  • 23
  • 5
2
votes
0 answers

Ember-Simple-Auth Can't verify CSRF token authenticity even when X-CSRF-Token is in header

I know there are tons of questions of this topic, but I haven't found what's causing my problem. Problem I get the message on my rails server Can't verify CSRF token authenticity even when I can see on Chrome the header is present. (as shown in…
avraham
  • 56
  • 5
2
votes
0 answers

How do I revoke a token using Ember Simple Auth and redirect to the homepage?

I have an Ember app using Ember Simple Auth. I need to revoke tokens on the server side, which I can do easy enough by setting the revoked_at column, in the oauth_access_tokens table, to a timestamp. This causes the server to respond to Ember with a…
ancoanco
  • 220
  • 6
  • 17
2
votes
1 answer

ember-simple-auth update data in session

I have the following code: changeUsername: function(){ var _this = this; this.store.findById('user', this.session.get('user.id')).then(function(user){ user.set('username', _this.get('newUsername')); user.save(); …
user156888
2
votes
1 answer

Redirect user to the same page after logging out

Sometimes I would like to be able to have a user log out, but stay on the page they were already on. I'm using invalidateSession to log the user out, but this reloads the application and takes them to my application's root URL - the login page. In…
Peter Brown
  • 50,956
  • 18
  • 113
  • 146
2
votes
1 answer

ember-simple-auth deferReadiness until user is loaded

I am using ember-cli-simple-auth and have extended the session object to include the currentUser which is retrieved from the /me endpoint. However, when the page is reloaded and the user is logged in there is a delay until the logged in user…
Jacob Windsor
  • 6,750
  • 6
  • 33
  • 49
2
votes
1 answer

Synchronously inject current user after login

In my EmberJS application, I have a current user initializer, which injects the user into all controllers, routes, and views. It works great when logged in. I need the synchronous loading of the current user object so I can check some user…
ToddSmithSalter
  • 715
  • 6
  • 20
2
votes
1 answer

How to expires the ember-simple-auth session?

I am using ember-simple-auth for authentication in my application. I have created my custom Authenticator. Upon successful authentication, the server returns the token and expire time which I store in session storage of simple-auth. My question is…
Tushar Patel
  • 365
  • 3
  • 16
2
votes
1 answer

How can ember-simple-auth authorizers be selectively disabled?

I am implementing a custom authorizer and authenticator to perform HMAC token signing using the ember-simple-auth library, and each piece works well in isolation, but break together. If I disable the authorizer, the authenticator can initiate…
double.emms
  • 483
  • 7
  • 14
2
votes
3 answers

Capturing failed request with ember-simple-auth

I am adding functionality to allow users to reject un-expired oauth tokens. (I am using ember-simple-auth-oauth2 and a custom oauth2 implimentation). I would like to notify clients using a rejected token that their token was manually rejected. The…
Alan Peabody
  • 3,507
  • 1
  • 22
  • 26
2
votes
3 answers

multiple login routes using ember-cli-simple-auth

I am trying to configure a basic ember-cli app using authentication via ember-cli-simple-auth and want to have a dedicated 'guest' login page and a different 'admin' login page (authorizing to different serverTokenEnpoint's). I have the 'guest' page…
ShopApps.co.uk
  • 93
  • 2
  • 12
2
votes
2 answers

Ember CLI + Ember Data + Simple Auth: authorize gets not called

i am using Ember CLI + Ember Data + Simple Auth. The authenticator is working fine. But when im am doing a Rest Call with Ember Data Rest Adapter this.store.findAll("user"); the authorize function in my custom authorizer don't gets called. The Rest…
thpnk
  • 616
  • 1
  • 5
  • 9
2
votes
1 answer

Ember-cli-simple auth and ember-cli-simple-auth-torii how to make them work together

I am little confused on how to use ember-simple-auth with torii I am using ember-cli-simple-auth and ember-cli-simple-auth-torii i am getting below mentioned error dont know waht i am missing Uncaught Error: Assertion Failed: No application…
Rigel
  • 882
  • 1
  • 11
  • 32
2
votes
1 answer

ember-simple-auth multiple authenticator architecture

I am trying to implement multiple login options in my ember-cli site (so you can authenticate via facebook, google, or my own oauth2 server). However, I'm a little at a loss as to the right way to accomplish this. As far as my research goes, I can…
SuperTron
  • 4,203
  • 6
  • 35
  • 62