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

init and sessionAuthenticated in ApplicationRouteMixin can not be together

I lost my head for this problem: init and sessionAuthenticated in ApplicationRouteMixin can not be together! In my routes/application.js I have something like this: import Ember from 'ember'; import ApplicationRouteMixin from…
user4412054
1
vote
0 answers

Issue with persisting session attributes after Torii authentication with ember-simple-auth

I'm following ember-simple-auth dummy app to implement authentication with torii. Everything works, and the app authenticates, but it fails to persist additional attributes returned from the server into data.authenticated. Just as the authentication…
Sbbs
  • 1,610
  • 3
  • 22
  • 34
1
vote
1 answer

Upgrading Ember Simple Auth

I am having an issue upgrading ember simple auth. TypeError: Cannot read property '__container__' of undefined at authenticateSession (http://app.meetabe.dev:4200/assets/tests-a3c931e27860232e47d8de67d537cf75.js:298:24) at…
ancoanco
  • 220
  • 6
  • 17
1
vote
1 answer

Unknown `service:session` injector in Ember route unit test

I have simple sign in route in my Ember app: import Ember from 'ember'; import UnauthenticatedRouteMixin from 'ember-simple-auth/mixins/unauthenticated-route-mixin'; export default Ember.Route.extend(UnauthenticatedRouteMixin, { }); And not much…
Hauleth
  • 22,873
  • 4
  • 61
  • 112
1
vote
0 answers

Why is my implementation of SSO using Ember-Simple-Auth with Auth0 getting stuck in a redirect loop?

I have an ember application that uses the Auth0 Ember Simple Auth addon to use the Ember-Simple-Auth functionality with Auth0's Lock.js. Recently I have been trying to implement single-sign-onfunctionality, such that if a user logs into a login…
UpQuark
  • 791
  • 1
  • 11
  • 35
1
vote
1 answer

Ember Simple Auth subdomain redirects

I've been able to successfully setup multiple Ember applications with shared Ember Simple Auth cookie based authentication. The next step of my journey is to setup proper redirects between applications. Hear me out. Scenario A (this works out of the…
Kris.O
  • 13
  • 2
1
vote
1 answer

Emberjs: How to invalidate session in custom authentication initializer

I'm using ember-simple-auth 1.1.0 with cookie authentication and I created a custom authenticator with functions (restore, authenticate and invalidate) and an initializer of the custom authenticator. I bind on ajaxError event so we can catch any…
Panagiotis
  • 201
  • 3
  • 16
1
vote
1 answer

How to persist current logged in user details across page reload in EmberJS?

I use ember-simple-auth to manage authentication in my ember app. The addon provides a session library which apparently stores the response from API server when I login using token authentication. The response contains typical oAuth2 response like…
Ashish Tajane
  • 221
  • 1
  • 9
1
vote
0 answers

ember-simple-auth cookieExpirationTime not working

I need to implement a "remember me" feature in my application. I am using the built-in devise authenticator and have the following as my Session Store: // app/session-stores/application.js import CookieStore from…
1
vote
1 answer

Using ember-simple-auth when the login page is on another system

The page to login to our application is a jsp hosted on another machine. I have managed to get requests firing to this machine by modifying authenticated-route-mixin by allowing window.location.replace to be called if the route start with http. …
jax
  • 37,735
  • 57
  • 182
  • 278
1
vote
1 answer

How can I set up an Ember Simple Auth session in dev with data from Mirage?

I want to configure the Ember Simple Auth session to be authenticated for a user generated by Ember CLI Mirage on startup. During testing I can use the Ember Simple Auth authenticateSession() helper, but as far as I can tell, this isn't available…
cbnz
  • 656
  • 1
  • 9
  • 19
1
vote
1 answer

Ember app errors with ember-simple-auth before restoring session during livereload

I am working on an app in Ember 1.13.8 with a Rails backend that uses Devise for authentication, and I'm trying to upgrade to ember-simple-auth. I've followed the upgrade path guide at…
Erto Pena
  • 11
  • 2
1
vote
1 answer

Get two versions of ember-simple-auth to play well together

We're working with two ember applications that each run different version of ember and ember-simple-auth, and want to get ember-simple-auth to work well with both version. The old app Ember 1.8.1 Ember-simple-auth 0.7.3 The new app Ember…
Patrick Berkeley
  • 2,206
  • 21
  • 26
1
vote
2 answers

Is there a way to prevent users from editing the local storage session?

I am creating a relational blog where I make use of ember_simple_auth:session to store the session like {"authenticated":{"authenticator":"authenticator:devise","token":"rh2f9iy7EjJXESAM5koQ","email":"user@example.com","userId":1}} However, on the…
Deovandski
  • 790
  • 1
  • 8
  • 22
1
vote
1 answer

Integrating Ember_simple_auth with acceptance tests (using Mirage)

I created a basic test app that uses the OMDb API (The Open Movie Database), and with some help from SO posters everything is working fine. I added ember-simple-auth (version 1.0.0) to the project, and got the dev side of things going. Basically…
A B
  • 131
  • 1
  • 13