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

Actions aren't triggered by Ember CLI Simple Auth ApplicationRouteMixin

I'm using Ember CLI and integrated the Simple Auth Addon successfully. Unfortunately I'm facing an issue at the moment that I can't seem to get the sessionAuthenticationFailed action in my project's ApplicationRoute triggered. I already did this…
David Philip
  • 185
  • 1
  • 8
0
votes
1 answer

Import Session not working

In my Ember App I want to extend Ember Simple Auth's Session Object (I'm using the Ember CLI Addon). That's why I import it like stated in the docs: import Session from 'simple-auth/session'; When I try to build my app the console logs a file not…
0
votes
2 answers

Ember-Simple-Auth: Overloading sessionAuthenticationSucceeded

I am currently trying to override sessionAuthenticationSucceeded in the Ember.SimpleAuth.ApplicationRouteMixin class, so that I can transition into my routeAfterAuthentication with a model passed in. Basically…
HunterS
  • 1
  • 3
0
votes
2 answers

ember.js + ember-simple-auth how can I load application models after authentication?

I'm adding ember-simple-auth to handle authentication for an application I'm building. Currently in the ApplicationRoute I'm using a model to load sidebar content. Some of the data is dependant on a user URL property which is returned with the auth…
Bobby Sciacchitano
  • 851
  • 1
  • 10
  • 19
0
votes
3 answers

How do I access currentUser from Controllers?

Here's my initializer: ... Ember.SimpleAuth.Session.reopen({ currentUser: function() { var userId = this.get('user_id'); if (!Ember.isEmpty(userId)) { return container.lookup('store:main').find('user', userId); …
0
votes
2 answers

Ember-simple-auth ApplicationRoute model function

I have classic setup of Ember-simple-auth, in ApplicationRoute I use model: function () { return Ember.RSVP.hash({ user: this.store.find('gsUser').then(function(data) { return data.get('content')[0] }) }); }, setupController:…
Ruslan Zavacky
  • 363
  • 2
  • 7
0
votes
1 answer

Embjs Simple-Auth -- Cannot read property 'name' of undefined

I am building an Ember-cli app using the Simple-Auth library. The current system setup is basic with only an initializer instantiated in the initializers folder. The name of the initializer is /*initializers/initializer-application.js*/ var…
SuperNinja
  • 1,538
  • 6
  • 22
  • 45
0
votes
1 answer

Invalidating an Ember Simple Auth session while testing

Typically, when you invalidate an Ember Simple Auth session, it'll reload the application. This is great for security in production, but while testing, it can be a headache. I'm running my tests using Teaspoon, and any time I logout a test user,…
nullnullnull
  • 8,039
  • 12
  • 55
  • 107
0
votes
1 answer

How can one access DS.store within Ember.SimpleAuth.Authenticators.Base

Here's the base authenticator for Ember.SimpleAuth, which includes an authorize method that one must override: http://ember-simple-auth.simplabs.com/ember-simple-auth-api-docs.html#Ember-SimpleAuth-Authenticators-Base I get "this.store is undefined"…
Marc
  • 3,812
  • 8
  • 37
  • 61
0
votes
2 answers

Testing ember-simple-auth within Ember App Kit

I'm attempting to perform integration/acceptance tests for my Ember app. I'm specifically testing user authentication (e.g. – submitting the login form) and protected pages/states that require authenticated users. General notes about my app: Using…
-1
votes
1 answer

Ember Rails authentication via simple-auth and devise

I have tried everithing starting following this guide https://adibsaad.com/blog/setting-up-ember-cli-with-a-rails-back-end-and-token-authentication-authorization but still it does not work. When I try to reach pages that are protected with…
-2
votes
1 answer

How to Update JWT token from response header in ember-simple-auth session

I am using ember-simple-auth & ember-simple-auth-token to maintain session on Ember. I do not want to use the refresh-token approach, instead would like to receive a new jwt token in the response header from every service request. how can i keep my…
-2
votes
1 answer

Ember-simple-auth-token / Flask error: AttributeError: 'function' object has no attribute 'get'

I'm trying to run an Ember project that I had to upgrade it's packages, but now I run into deprecation issues. My current issue is that when I press 'login' I see the following error Client side: http://127.0.0.1:8000/api/token-auth/ [HTTP/1.0 500…
Folaht
  • 1,053
  • 1
  • 13
  • 32
1 2 3
25
26