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

Simple auth addon seems to not be reading env config

I am following the example here, and I have this in my config/environment.js file: ENV['simple-auth'] = { authorizer: 'simple-auth-authorizer:devise', routeAfterAuthentication: 'landing-pages' }; However, after my app authenticates it tries to…
Sam Selikoff
  • 12,366
  • 13
  • 58
  • 104
2
votes
1 answer

Ember-Simple-Auth OAuth 2.0 not sending the right parameters

So I am setting up ember-simple-auth using the OAuth 2.0 extension. The issue is whenever I try to login and look at what's being sent as form data, it's only sending the grant_type and password parameter. However, the password parameter is always…
user1952811
  • 2,398
  • 6
  • 29
  • 49
2
votes
1 answer

Why does Ember-Simple-Auth support refresh tokens? (JS + OAuth 2.0)

From what I've read in the OAuth 2.0 specs so far, it is not recommended to store any confidential information in the browser where it would be accessible via Javascript. The discussion here also seems to agree on this point: Using OAuth2 in HTML5…
mphasize
  • 55
  • 6
2
votes
1 answer

Ember Simple Auth Base URL

I have an Ember app which is set up using Ember CLI - then a Rails app that provides the RESTful API for the Ember app (the Rails app is completely separate and runs on a different url). I'm trying to use Ember Simple Auth but I can't find a way to…
1
vote
3 answers

Ember Octane How to convert custom mixins

This question is related to: Does Ember Octane Route class support using mixins? Mixins are officially deprecated in Ember Octane. Question: What is the best option to replace Ember mixins with and how do I implement it? Context: I have custom…
J Weezy
  • 3,507
  • 3
  • 32
  • 88
1
vote
2 answers

User loading after authentication with ember simple auth

I use ember simple auth to authenticate my users. It workls perfectly fine except when the user just logged in. I have an helper that ask for the current user : import Helper from '@ember/component/helper'; import { inject as service } from…
Syl
  • 3,719
  • 6
  • 35
  • 59
1
vote
1 answer

Ember simple auth tests failing intermittently

I am struggling to debug failing tests on an Ember 3.0 app. I have a login form using ember-simple-auth. The authenticate action looks like this: let { identification, password } = this.getProperties('identification',…
AdamP
  • 207
  • 2
  • 8
1
vote
1 answer

Ember-Simple-Auth customised Devise Authenticator serverTokenEndpoint defaulting to users/sign_in

Pretty much as described in the title. I have a basic Ember Simple Auth setup. With a Devise Authenticator I've setup a custom URL for the serverTokenEndpoint. (Coffeescript) devise = DeviseAuthenticator.extend serverTokenEndpoint: ENV.apiBaseURL…
1
vote
1 answer

ember-cli-mirage response headers are missing from XHR object

Trying to understand the inconsistency in the response between using my api vs ember-cli-mirage. I have a handler waiting for a response for a POST request to authenticate a user. The expected parameters for the handler are response, status and…
Tom Doe
  • 866
  • 1
  • 13
  • 22
1
vote
1 answer

Ember-simple-Auth addon throws error

I just installed ember-simple-auth (version 1.3.0) in my application. Before insalling addon, the application is working fine but after installing it throws the following error: Uncaught TypeError: (intermediate value)(intermediate value).on is not…
Sow Hari
  • 35
  • 7
1
vote
0 answers

ember-simple-auth: only validate the password without logging in

Is it possible to only check the password with ember-simple-auth? I want the user to re-enter their password if they want to delete their account. Can this password check be done without touching the store using ember-simple-auth? If I use code…
eugenk
  • 472
  • 4
  • 11
1
vote
2 answers

How to auto redirect after authenticate using ember-simple-auth

I am using JWT (JSON Web Token) to authenticate user. I do include the ApplicationRouteMixin in application.js route and it supports to handle two events (success login and success logout) by default. Now when I login with a user credential using…
XY L
  • 25,431
  • 14
  • 84
  • 143
1
vote
1 answer

Ember-simple-auth prevent session invalidation on 401 reponse

I am using Ember: 2.11.0, ember-simple-auth: 1.2.0 I use the ember-simple-auth to authenticate my application via oauth2 to my REST API. The standard behaviour of ember-simple-auth is to invalidate the users session if the server responds with a 401…
Maurice Döpke
  • 367
  • 3
  • 9
1
vote
1 answer

Log in without redirect using Ember Simple Auth

How would I go about logging a user in using ember simple auth without redirect them? The authentication code looks like this: session.authenticate( 'authenticator:oauth2-password-grant', identification, password, ['read',…
ancoanco
  • 220
  • 6
  • 17
1
vote
2 answers

ember-simple-auth: Error: Assertion Failed: The route index was not found

I am building an app with the use of ember-simple-auth. So it looks very much like the library its doing is thing. Here is what happens: user tries to access /dashboard but is redirected to / the route / contains the login form the user logs in…
odinp123
  • 35
  • 13