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
1
vote
1 answer

Promise reject not returning?

I'm working with ember.js and have a problem with the simple auth token package not returning a rejected promise, and I'm not sure why. The issue that I'm trying to solve is to show an error message if the authentication is rejected, for this…
awwester
  • 9,623
  • 13
  • 45
  • 72
1
vote
1 answer

Add a "Facebook Login" to SimpleAuth's Instagram Login Page

Is there anyway to add a Facebook Login to SimpleAuth's Instagram Login Page? I'm very surprised to have not found questions and/or tutorials about this, as quite a few Instagram Users have chose to Login with Facebook and cannot recall their…
ChrisHaze
  • 2,800
  • 16
  • 20
1
vote
1 answer

Ember Simple Auth testing window.location.reload

I've got ESA working nicely with Ember 2.0.1 but stumbled on an interesting case whilst testing: Given the following test: import Ember from 'ember'; import { module, test } from 'qunit'; import startApp from…
EasyCo
  • 2,036
  • 20
  • 39
1
vote
0 answers

Bizarre Behavior testing ember with simple auth

I am writing my first ever ember tests. I am using ember-cli and ember 1.13.6 with simple-auth 0.8.0 I am seeing some baffling behavior while running my tests in headless mode with phantom.js authenticateSession() from the ember-simple-auth library…
Andrew
  • 942
  • 10
  • 26
1
vote
2 answers

Ember Simple Auth transition after login

I have login code on my application route, as per examples in the docs, but the call to authenticate does not seem to return a promise. The response I get in 'then' is undefined. Therefore the transition does not work. I have to manually refresh the…
Paul Byrne
  • 1,563
  • 18
  • 24
1
vote
3 answers

Saving a user to a session as a computed property

I've seen other questions about this (like this one), and I believe this should be working import Ember from 'ember'; import Session from 'simple-auth/session'; export default { name: 'session-with-me', before: 'simple-auth', initialize:…
oliverbarnes
  • 2,111
  • 1
  • 20
  • 31
1
vote
1 answer

Ember Simple-Auth empty payload

I just recently started learning Ember and I'm trying to make a login page using Ember Simple-auth and Laravel JWT packages. The problem is that my Ember submit action sends an empty payload. It seems like the getProperties function is not getting…
Kristjan Kirpu
  • 674
  • 1
  • 7
  • 26
1
vote
1 answer

ember-cli, ember-simple-auth: Cannot re-register: `store:main`

currently I'm changing my project from ember to ember-cli and run in a issue I can't get rid of. I am really not sure where the problem is, since I also updated ember and ember-data. I get the Error: Uncaught Error: Cannot re-register: `store:main`,…
PowPi
  • 164
  • 1
  • 1
  • 10
1
vote
1 answer

How to store the user id in session with ember-simple-auth?

I want to store the user id in the session. I have this authenticate method in a custom authenticator : authenticate: (credentials) -> _this = this new (Ember.RSVP.Promise) (resolve, reject) -> Ember.$.ajax( url:…
Dougui
  • 7,142
  • 7
  • 52
  • 87
1
vote
1 answer

Ember simple-auth 0.8.0 loses session after authenticating

I just went from 0.6.7 to 0.8.0 in order to get the testing package, but now I can't log in to my app. I'm using a custom authorizer and authenticator. The authentication appears to work fine, in that a session object is returned with the props…
redOctober13
  • 3,662
  • 6
  • 34
  • 61
1
vote
2 answers

How to make Ember Cli Mirage to work with Ember Simple auth

For development and testing I want to use Ember CLi Mirage. I'm trying to get it to work with simple auth and oauth2. How do I have to set up Mirage to work with a session token? This is what I'm doing so far: import Ember from 'ember'; export…
1
vote
1 answer

How can I set all route have the same method or action when I use ember?

My ember application use 1.11.3 version and ember-simple-auth(0.7.3). All of route must set the AuthenticatedRouteMixin and get the account infomation use beforeModel, I think is not good way to do this. Example: App.Route =…
JeskTop
  • 481
  • 1
  • 4
  • 20
1
vote
0 answers

How to redirect to login page if get the 401 error when I use ember-simple-auth?

"ember-simple-auth": "0.7.3" My ember.js application model is not use ember data and use Ember.Object to set the ajax api url. After I login successfuly, I change the token and I will get 401 errors. Like: GET…
JeskTop
  • 481
  • 1
  • 4
  • 20
1
vote
1 answer

Ember CLI Simple Auth test helper authenticateSession is not defined

I am using ember-cli 0.2.6 and ember-cli-simple-auth 0.8.0-beta.2. Starting from scratch I do the following: ember create project1 //inside project1 ember install ember-cli-simple-auth now i am adding the following line to…
justastefan
  • 595
  • 5
  • 18
1
vote
1 answer

Is it possible to make all routes authenticated with Ember Simple Auth?

Ember Simple Auth provides a route mixin that lets you authenticate certain routes in your application. I'm working an app where essentially every route (except the login route) is authenticated. Is is possible to specify this in a single option…
Sam Selikoff
  • 12,366
  • 13
  • 58
  • 104