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

Ember Simple Auth - authenticated route model hook called before authenticate promise resolves

So I have a simple ESA setup with a custom authenticator/authorizer wrapping Basic HTTP Auth. The login route uses UnauthenticatedRouteMixin and the login controller is basically just authenticating against the custom authenticator, and afterwards…
Julian Rubisch
  • 547
  • 7
  • 21
1
vote
1 answer

Handling Multiple Accounts in Ember Simple Auth

I'm using Ember 2.3 with Ember Simple Auth 1.0 and am wondering if anyone had any suggestions on the best approach to handle the following situation: With the particular industry my platform serves, most staff are actually independent contractors…
jdixon04
  • 1,435
  • 16
  • 28
1
vote
0 answers

ember-simple-auth custom authorizer not called with ember-django-adpter

I am using ember-django-adapter with ember-simple-auth and have written the custom authorizer for token authentication. I am able to obtain the token from server but not able to inject it into the api requests using the…
gauravdott
  • 420
  • 1
  • 5
  • 14
1
vote
1 answer

How in ember-simple-auth change "username" in request body to _username and password to _password

I can change it inside module, but after "npm install" this changes are discarded
1
vote
1 answer

Ember-simple-auth change cookie on the fly

I have an Ember application and I use ember-simple-auth for authentication. I want to change the cookie stored, that is related with the authentication, on the fly. The reason is a feature of impersonating another user. I have…
manosagent
  • 614
  • 8
  • 18
1
vote
1 answer

Not able to make the ajax request with my header given by ember-simple-auth authorizers

I have developed a template (feedheader.hbs) which I am rendering in my feed template like {{ render 'feedheader' feedheader}}.This feedheader contains the username and profile pic of user.I need to send the the requests to…
nandanself
  • 835
  • 8
  • 21
1
vote
1 answer

fb login through ember-simple-auth

I have to include a fb login in my web app.Now fb login returns a access_token which is send to my backend to get a new token generate by my backend.This new token is now to be send in headers of every api call I make to my backend.Is there a way I…
nandanself
  • 835
  • 8
  • 21
1
vote
1 answer

Redirect to Login Route from Application Route if user is not authenticated

I'm using ember-cli-simple-auth 1.0.1. My doubt now is how can i force redirect to /login if the a user tries to access the application route / if he is not log in?
Marcus
  • 65
  • 7
1
vote
1 answer

ember-simple-auth overriding sessionAuthenticated

Folks, I've been trying to get ESA to redirect to specific pages after login and logout events without success. I'm trying to do this by overriding the "sessionAuthenticated" method, but have also tried setting the "routeAfterConfiguration" setting…
Andy Davison
  • 541
  • 4
  • 13
1
vote
1 answer

How access session username after session is authenticated in other controller

I am using Ember-simple-auth to authenticate my routes, and is working fine. I have: login - login route index - after login in ok And i'm using the ember-cli-notification to pop up this message: "Welcome USER NAME" Like this, in…
user5526811
1
vote
1 answer

Redirect to index page if user is not authenticated

I'm using ember-cli-simple-auth with ember-cli-simple-auth-token: "ember-cli-simple-auth": "^0.8.0", "ember-cli-simple-auth-token": "^0.7.3" And i already made all configurations with my server to receive the token if the credentials matches with…
user5487299
1
vote
1 answer

Ember simple auth Session not getting authenticated after calling resolve in custom authenticator

My authenticators/custom.js: import Ember from 'ember'; import Base from 'simple-auth/authenticators/base'; export default Base.extend({ restore: function(data) { }, authenticate: function(email, password, authenticateCallback) { return…
Devin Rhode
  • 23,026
  • 8
  • 58
  • 72
1
vote
1 answer

Ember: ESA: sessionAuthenticated doesn't called

I want to perform some code when ember-simple-auth session get authenticated. routes/application.js import Ember from 'ember'; import ApplicationRouteMixin from 'ember-simple-auth/mixins/application-route-mixin'; export default…
Crabar
  • 1,829
  • 1
  • 14
  • 26
1
vote
1 answer

Ember Simple Auth (Devise) after update, authenticate_with_http_token alway empty

I did an update from 0.7.2 to 1.0.1 with ember-simple-authfor for devise. Reference resources: https://github.com/jimbeaudoin/ember-simple-auth-devise-example . Now my authentification doesn't work at all, because authenticate_with_http_token alway…
JeskTop
  • 481
  • 1
  • 4
  • 20
1
vote
1 answer

How to not delete session data on logout in ember simple auth

Is there way how to not remove data from session on logout? I need to make ajax to invalidate token and then redirect to page outside ember. While waiting for ajax to resolve user sees how data from session are removed because of live binding. If I…
Keo
  • 1,143
  • 8
  • 19