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

ember-simple-auth-torii Facebook provider never returns promise from open function

I'm using ember-simple-auth-torii with a custom Facebook OAuth2 authenticator, but I never seem to be able to have the promise return any data (for the data.authorizationCode). The popup window just hangs until I close it, at which point I get the…
Josh Smith
  • 14,674
  • 18
  • 72
  • 118
0
votes
1 answer

Ember simple auth session content lost after page reload

I've created a clean ember app, installed simple-auth and implemented a custom authenticator for facebook. https://github.com/prule/ember-auth-spike I can see that I'm successfully getting the access token from FB and its put in the session…
prule
  • 2,536
  • 31
  • 32
0
votes
3 answers

Ember CLI - Simple Auth - Custom Authenticator not automatically registering

I'm attempting to setup a custom authenticator with ember simple auth. I'm using Ember CLI and according to the Simple Auth ReadMe on GitHub it states. Note that when you're not using Ember CLI the authenticator will not be registered with the…
Garrett
  • 181
  • 1
  • 4
0
votes
0 answers

Ember cli simple auth login with facebook using torii authenticate against server using oauth2

How do i allow the user to login with facebook and take that facebook authentication code and pass it to my server using simple auth oauth2? I obviously want to validate whether or not the user has permissions to make request to my server. I have…
Brian Voelker
  • 849
  • 1
  • 10
  • 20
0
votes
1 answer

Making authenticated requests with ember-simple-auth-ephemeral store in testing

I have a rails backend and ember cli project that are using ember-simple-auth devise and I am trying to get a Qunit test to cover an authenticated post to rails. I am not mocking out any backend calls. My test is setup like this: test('successfully…
user2936314
  • 1,734
  • 4
  • 18
  • 32
0
votes
1 answer

Ember Auth Custom Authenticator

When writing a custom authenticator using Ember.SimpleAuth with Ember-CLI, what exactly does the authenticate method of the custom authenticator need to return in order to establish a user as logged in? Below is the authenticator as it currently…
John
  • 171
  • 1
  • 2
  • 11
0
votes
2 answers

Ember-cli-simple-auth-devise :Authorization: Token token="", user_email="" (Header not added)

The 'Authorization' header is not being set for some reason. I have tried setting the authorizer in config/environment.js with updated:as per @marcoow suggestion ENV['simple-auth'] = { crossOriginWhitelist: ['*'], authorizer:…
Rigel
  • 882
  • 1
  • 11
  • 32
0
votes
2 answers

Invalidate session with custom authenticator

Using ember-cli 0.1.2 and ember-cli-simple-auth 0.7.0, I need to invalidate the session both on client and server. As explained here I need to do something similar to the authenticate method making an ajax request to the server and ensuring its…
masciugo
  • 1,113
  • 11
  • 19
0
votes
1 answer

Ember CLI Simple Auth goes to Login page on every reload

I'm using ember-cli-simple-auth and the cookie-store add-on, I've set up my application and login routes and my authenticated routes, pretty much all that is working, but if I reload the page, or if livereload does it for me, I get kicked back out…
redOctober13
  • 3,662
  • 6
  • 34
  • 61
0
votes
1 answer

ember-cli packages installation

Why some npm packages for ember-cli (like ember-cli-simple-auth or ember-cli-simple-auth-token) needs to be installed with the following two statements npm install --save-dev ember-cli-simple-auth-token ember generate simple-auth-token ? I don't…
masciugo
  • 1,113
  • 11
  • 19
0
votes
1 answer

authorize() method doesn't fire for CustomAuthorizer

I've upgraded an ember-cli app with a custom authenticator and authorizer for simple-auth from 0.0.40 and ember-cli-simple-auth 0.6.3 to versions 0.0.46 and 0.6.7, respectively. Authentication works fine, but the authorize() method doesn't fire, so…
BillyB
  • 817
  • 2
  • 9
  • 19
0
votes
1 answer

Custom authorizer not called

I'm trying to implement a custom authorizer (using ember-cli and ember-cli-simple-auth) but the authorize method is not being called on any requests. The init function is being called and the message that appears in the console when there is no…
Alex
  • 463
  • 3
  • 12
0
votes
1 answer

How to prevent clearing my password when login form is submitted?

I'm using the basic configuration of ember-simple-auth. When I click submit, request is gone to backend but my password field becomes empty. My username field is still filled. My template: login.emblem form.submit='authenticate' Ember.TextField…
0
votes
1 answer

Access the authenticated user with ember app, rails api, and ember-cli-simple-auth-devise addon

Following this tutorial http://givan.se/p/00000000 I have setup authentication for an ember app with a grape api. The tutorial doesn't store the current session, because there seems to be no need, however, I would like to access the current…
0
votes
1 answer

Change server token end point for ember simple auth devise add on

I have an ember-cli app that uses ember simple auth(ember-simple-auth-devise) add on for authentication. I need to change the token end point of my authorizer to http://example.com/api/v1/users/sign_in. In my environment.js file I have…
ptwo
  • 461
  • 4
  • 13