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
2 answers

ember-simple-auth-devise not authenticating

I have an Ember CLI front-end app, and a Rails app using Devise for authentication. I thought I had things set up correctly, but I am running into a few problems. 1) After submitting the login form, I do not get re-directed. If I manually click a…
yeabuddy
  • 11
  • 2
0
votes
0 answers

ember-simple-auth custom authenticator loses partial data on refresh

I have a custom authenticator which inherits from the torii authenticator: https://github.com/wayne-o/sonatribe-ui/blob/master/app/authenticators/sonatribe-facebook.js It works in so far as I can log in and I can see the session data in local…
user156888
0
votes
2 answers

Ember Simple Auth on Firefox: authentication throws Error

I am extending Ember Simple Auth's base authentication class to allow authentication with Google. So far, it works on Safari 8 and Chrome 41 (both on Yosemite) with no errors. However, on Firefox 35, it throws an Error that does not occur on the…
Jonathan Chan
  • 354
  • 2
  • 12
0
votes
1 answer

Simple ember-cli-simple-auth and oauth2 project

I'm very new to 3rd party authentication and have not been able to make an API request to LinkedIn through the ember-cli-simple-auth addon paired with simple-auth-oauth2. My environment.js is below, where I've tried to piece together parts from…
0
votes
0 answers

ember-simple auth / torii facebook login flow with access token?

I have the following code to make ember-simple-auth work with torii to authenticate my ember js app using facebook: https://github.com/wayne-o/sonatribe/blob/master/src/sonatribe-ui/app/routes/application.js My NodeJs API (sails / waterlock) has an…
user156888
0
votes
2 answers

Trigger transition to 'loading' route after ember-simple-auth authentication

I'd like to display a "loading..." animation to the users logging into my application. Ember automatically transitions to a 'loading' route (if any) if a model returns a promise, so it gives the opportunity to display a 'loading' template till the…
balafi
  • 2,143
  • 3
  • 17
  • 20
0
votes
1 answer

Rails and Ember Simple Auth

Now I'm learning Ember and have a simple Ruby on Rails app with Devise. I do everything by this manual. But it doesn't work. So I've found this issue: #387 and pull-request where my problem is maybe fixed #394. So my question is how to get changes…
Alex Tonkonozhenko
  • 1,514
  • 12
  • 26
0
votes
1 answer

Ember Cli Authentication with node server and social logins

I am building a ember cli app and I would like to know what is the best approach for user authentication and authorization. I fiddled around with…
Ajey
  • 7,924
  • 12
  • 62
  • 86
0
votes
1 answer

Forcing the router to pause until current user is loaded

I'm using Ember Simple auth, and I'm using an initializer to set the current authenticated user as a property on my session: Session.reopen({ setCurrentUser: function() { var id = this.get("user_id"); var self = this; if…
Sam Selikoff
  • 12,366
  • 13
  • 58
  • 104
0
votes
1 answer

bast way to handle server session reset with ember simple auth

I am using the ember simple auth. i really like it as it have taken care alot of stuff I need. However I am wondering if there is a good pattern to deal with the situation when the serverside reset the session but sesssion.isAuthenticated saying is…
charleetm
  • 916
  • 1
  • 12
  • 26
0
votes
1 answer

Cannot retrieve logged in user while using Ember simple auth with Ember-CLI

I am having a bit of an issue with a small ember app which uses GitHub/Facebook authentication implemented with ember-simple-auth (with torii) within ember-cli. Login works nice, I seam to be authenticated but I would like to know who is logged in.…
Eduárd Moldován
  • 1,495
  • 3
  • 13
  • 29
0
votes
1 answer

How do I get attributes of Custom Session using Ember Simple Auth

PROBLEM: I don't know how to get the current session in a controller. I have a custom authenticator, custom session, and initializer defined like so: CUSTOM AUTHENTICATOR in ../app/authenticators/custom.js var CustomAuthenticator = Base.extend({ …
Peter Kim
  • 193
  • 1
  • 16
0
votes
0 answers

Ember-simple-auth's sessionAuthenticationSucceeded does not fire

I want to use the sessionAuthenticationSucceeded action in my applicationRoute, but somehow it doesn't fire. I checked and found that the trigger is being called here, but it is not actually being triggered here, neither is my custom…
Timo
  • 187
  • 1
  • 8
0
votes
1 answer

Ember Simple Auth - How To Update The Stored Token

On each request my application makes, a token is returned inside the response. This is the token that needs to be used for the next request. This works (partially). When I refresh the App it runs the restore function but uses the wrong token. …
JonathanBristow
  • 1,066
  • 2
  • 13
  • 36
0
votes
1 answer

Emberjs and Simple Auth for any $.ajax

I am doing an $.ajax post command and i currently have an authenticated session on the client side. I am trying to figure out how to add the token to the ajax call (as on the server i check the token to see if it matches in my local database. How is…
user3554230
  • 283
  • 2
  • 11