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

How do I inject the simple auth session into an adapter?

I have an adapter that queries a url using user specific data. I need a way to get data from the simple auth session to the adapter. I tried to inject the session into the adapter Adapter session: Ember.inject.service('session'), But this is…
Wez
  • 61
  • 5
3
votes
2 answers

Ember cli error with ember-simple-auth

I'm trying to use ember-simple-auth with a custom session. After logging in, when I try to access the session in a template, like so: {{session.current_user.email}} I get the following error: Uncaught Error: Assertion Failed: Required…
Kori John Roys
  • 2,621
  • 1
  • 19
  • 27
3
votes
1 answer

Ember-Simple-Auth-Torii: How can i handle server side authorizatoin with devise-omniauth

Hi I have a ember app with frontend with ember-cli-simple-auth-torii & ember-cli-simple-auth-devise backend with devise and omniauth-facebook THe torii gives you an authorizationCode on login in with facebook and what we do with this authorization…
Rigel
  • 882
  • 1
  • 11
  • 32
3
votes
1 answer

Ember/Rails CORS Simple-Auth 405 (Not Allowed)

I have an ember-cli app with a ActiveModelAdapter to a Rails API using rack-cors. I have configured both to use ember-cli-simple-auth-devise. Locally in development everything works perfectly. But once I deploy the ember-cli app to Heroku I am…
bahudso
  • 159
  • 1
  • 11
3
votes
4 answers

Ember.js find single item without ID

I’m building an Ember.js application, using Ember data, ActiveModel serializer, and Ember Simple Auth Devise, connecting to a Rails API and trying to understand how I could build a route that loads a single resource, in this case for a "my account"…
Gordon Isnor
  • 2,065
  • 1
  • 19
  • 32
3
votes
1 answer

Ember Simple Auth custom authenticator

I've been trying to create a session.currentUser property with an id, email, and points properties. I'm referencing Custom authenticator with Ember simple auth + Ember CLI and How to store the user in a session, but I just can't figure out how the…
michael
  • 2,977
  • 3
  • 20
  • 26
3
votes
1 answer

ember-simple-auth: Any way to get session from within the Router?

I want to use analytics tracking on every transition like mentioned in Mixpanel with EmberJS In order to do so, I need to be able to reopen the Router. Is there any way with ember-simple-auth to get the current session there? My understanding was…
Josh Smith
  • 14,674
  • 18
  • 72
  • 118
3
votes
1 answer

Using Pretender with Ember CLI

I am trying to get our authentication (ember-simple-auth) to be mocked by Pretender to run in our tests, but for some reason I get the following error: Pretender intercepted POST http://api.dev/token but no handler was defined for this type of…
alvincrespo
  • 9,224
  • 13
  • 46
  • 60
3
votes
3 answers

Custom authenticator with Ember simple auth + Ember CLI

I'm trying to write a custom authenticator, similar to the one from this example in the docs. The goal is to be able to retrieve the currently logged in user via session.user. I'm using Ember CLI, so in initializers/authentication.js I have import…
Sam Selikoff
  • 12,366
  • 13
  • 58
  • 104
2
votes
2 answers

Ember simple auth how to update when authenticate data is avaiable

Ember app is using adfs login. when a successful login adfs will redirect to ember web app with a route and query parameters. those query parameters contain access_token refresh_token user_id scope i need to update session of the ember auth with…
2
votes
1 answer

ember-simple-auth session.isAuthenticated is false after refresh page

I'm using ember-simple-auth with Cookie based authentication. When i login the {{session.isAuthenticated}} is true, but when i reload the page this is FALSE, but the localStore didn't change. This is my custom.js authenticator: import Base from…
2
votes
0 answers

torii facebook ember get user and name

Hi I want to get name and email from facebook authentication via torii and simple-auth, but I don't know how recovery this data. I can login via facebook but I can't get name or email. Could you helpme please This is my code: //import Base from…
2
votes
1 answer

A token request using ember-simple-auth-token won't include the identification field

A have an Ember (v2.12.0-beta.1) app that uses ember-simple-auth-token to request a JWT. The important part happens in the login controller. export default Ember.Controller.extend({ session: Ember.inject.service(), // Properties …
Marc-François
  • 3,900
  • 3
  • 28
  • 47
2
votes
2 answers

EmberJS test fails first time running in phantomjs

Problem I have a /login route that uses ember-simple-auth to implement authentication. During testing ember-cli-mirage is used to mock the backend. The user logs in by providing their email address and password. In total I have 4 acceptance tests…
Jon
  • 9,815
  • 9
  • 46
  • 67
2
votes
2 answers

ember simple auth: redirecting to previous route after login

My site has numerous pages that do not require login, and a few that do, and ember-simple-auth works great when transitioning to those pages that require authentication. When I am on a page that does not require authentication, and I attempt to log…
1 2
3
25 26