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.js - How can I save data to session from authenticator?

I have tried doing this.get('session') but it gives me nothing. I want to save data to my session I only seem to get the information I need from the authenticator but can't seem to be able to pass it around. (Tried a couple of methods suggested on…
Hillboy
  • 472
  • 6
  • 19
0
votes
1 answer

Show the onboarding screen to first time user in ember

I have a fb login integrated in my ember app.I have used ember-simple-auth to implement this.I am facing problem for the first time user.I have to show some onboarding screen to the first time user.For this my server is sending a sign_up flag as…
nandanself
  • 835
  • 8
  • 21
0
votes
1 answer

How do I determine exactly what is causing this Ember deprecation?

Below is a screenshot of an Ember deprecation. It's from a brand new Ember 2.3.0 app with Ember Simple Auth installed. I believe the depreciation comes from either Ember Simple Auth, or one of its dependencies because it's not there before…
0
votes
1 answer

Ember simple auth 1.0. custom authenticator

There is one problem, I want to set the routeIfAlreadyAuthenticated route in environment as the route with dynamic segment(/:userid/dashboard) which is based on the logged-in user. How can i do that? //config/environment.js …
Navneet
  • 4,543
  • 1
  • 19
  • 29
0
votes
0 answers

What is ember-simple-auth "password grant" authentiator expect from server?

I am confused. What does "password_grant" type of authenticator expect from server for it to say "successfully" authenticated when it is trying to get its token from remote server? It seems as long as server return 200 status code, it always…
Hao
  • 6,291
  • 9
  • 39
  • 88
0
votes
0 answers

Ember Simple Auth invalidate session with cookie store when 'NOT' remembered?

I added a "remember me" function to my login component and followed the advice of the authors on setting up the Cookie Store. What I found, however, is when I set Cookie expiration to null and close the browser window without Logging Out, the…
Vlad
  • 3,866
  • 1
  • 24
  • 20
0
votes
1 answer

Trigger action whenever session is updated, on application restart

I am using ember-simple-auth (and ember-simple-auth-token, but I think this is not relevant). Whenever a logged-in user reloads the page, the session is properly re-created. I have one problem, though: when the user enters the credentials, I am…
blueFast
  • 41,341
  • 63
  • 198
  • 344
0
votes
1 answer

Request from Ember front to Rails back is not happening

I am implementing a front-end in ember 1.13 with a Rails back-end and having the following problem: After the user is authenticated, I don't seem to be able to retrieve the user's record from the back-end. The browser debugger does not even show a…
user2953607
  • 97
  • 1
  • 2
  • 8
0
votes
1 answer

Ember Simple Auth + Devise throws 405

I'm using a stack consisting of Rails with Grape (for API stuff) and Devise (for user stuff), and Ember with Ember CLI and Ember Simple Auth. I want to implement authorization using the DeviseAuthenticator exposed by Simple Auth. My login controller…
0
votes
1 answer

What is the difference between SessionService and Ember.Service in ember 1.13?

I am new to ember and I am developing an app in ember 1.13 with a back end in Rails. I understand that the session and data store handling has changed from previous versions of ember quite a bit. I am using ember-simple-auth In particular, I am…
user2953607
  • 97
  • 1
  • 2
  • 8
0
votes
2 answers

setting the access token on every ajax request

I'm using the new version of ember-simple-auth, which doesn't automatically anymore add access token to ajax requests that are sent to the server. I'm using oauth2 authentication, and due to a bad documentation I somehow cannot figure out what and…
all jazz
  • 2,007
  • 2
  • 21
  • 37
0
votes
1 answer

ember simple auth session.addObserver example?

Would be awesome to see an example of how to add an observer to ember simple auth's session service data property. I'm currently stuck on another issue but will be coming back to this soon. Currently I wrote this in my application/route.js, but I'm…
Devin Rhode
  • 23,026
  • 8
  • 58
  • 72
0
votes
1 answer

ember-simple-auth with devise session lost on refresh

I used simplabs ember-simple-auth in ember and have rails setup using devise. when authenticate() gets called it sends the email and password to rails. which returns the token. I can see token in localstorage as follows but as soon as I hit refresh …
Ccr
  • 686
  • 7
  • 25
0
votes
0 answers

When using Ember Simple Auth is it possible to tell the difference between a token expiring and the user pressing logout

I've turned off refreshtokens as we currently do not use them. app/authenticators/oauth2.js export default OAuth2PasswordGrant.extend({ serverTokenEndpoint: ENV.APP.harrierServerTokenEndPoint, refreshAccessTokens: false, makeRequest:…
Adam Knights
  • 2,141
  • 1
  • 25
  • 48
0
votes
1 answer

Ember-simple-auth does not persist refresh's

I am so frustrated , i can't figure it out why ember-simple-auth does not persist when the page refresh's... I'm returning the access_token and i follow the docs to implement oauth2.... That's my code: authenticators/oauth2.js: import…
user5526811