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

Ember CLI - Injecting a service in route and get the current User with ember-simple-auth

I am using ember-simple-auth to authenticate. I have created the service to get the current user. //services/session.js import Ember from 'ember'; import ESASession from "ember-simple-auth/services/session"; export default ESASession.extend({ …
Gidrek
  • 750
  • 9
  • 23
4
votes
2 answers

Ember RSVP Promise resolve always returns undefined value

I'm using Ember-simple-auth and trying to return data from my custom authenticator back into the controller that did the authenticating. in my authenticator/custom.js: authenticate(identification, password) { return new…
jtf
  • 125
  • 7
4
votes
1 answer

Unpermitted parameter using Devise Token Auth gem in Rails API

I am using Rails-api to make a test authentication app which uses Devise_token_auth gem. The User.rb model looks like class User < ActiveRecord::Base before_save :set_auth_token # Include default devise modules. devise…
4
votes
1 answer

Facebook login with Torii and Simple-Auth : no authentication data returned

I tried to setup a facebook login using Torii and Simple-Auth Torii authenticator. I am using ember-cli. Here is my configuration : // config/environment.js ENV['torii'] = { providers: { 'facebook-oauth2': { apiKey: 'my…
obo
  • 1,652
  • 2
  • 26
  • 50
4
votes
1 answer

Ember: Add mixin to every route except one

Using Ember-Simple-Auth in an Ember-Cli app, I'm trying to require authentication on pretty much every route in my application. I didn't want to use the AuthenticatedRouteMixin on every route, because I don't want to have to define every route. So I…
niftygrifty
  • 3,452
  • 2
  • 28
  • 49
4
votes
1 answer

Restore session without email and password using Oauth2 token

I have a situation where I want to be able to automatically log in a user based on a confirmation token parameter in the URL. In my route I am making an AJAX request to the server to validate the token and sending back the same serialized Oauth2…
Peter Brown
  • 50,956
  • 18
  • 113
  • 146
4
votes
1 answer

ember-cli and ember-simple-auth setup for testing

I am using ember-simple-auth with ember-cli. I can't figure out how to pass authentication during integration tests are running. In my startApp I lookup for session from container then set isAuthenticated property to true but i guess it is not…
saygun
  • 1,438
  • 12
  • 26
3
votes
2 answers

How to replace the authorize method in ember-simple-auth

I'm trying to refactor my Ember acceptance tests to not use the deprecated authorize method, as it is throwing a warning: The `authorize` method should be overridden in your application adapter I checked the docs, and numberous other sources, but…
Addison
  • 7,322
  • 2
  • 39
  • 55
3
votes
1 answer

ember-simple-auth, acceptance tests and waiting for async actions

Struggling with acceptance tests. Started with basic login test: import { test } from 'qunit'; import moduleForAcceptance from 'static/tests/helpers/module-for-acceptance'; moduleForAcceptance('Acceptance | authentication'); test('login',…
3
votes
0 answers

Testing route with unauthenticatedRouteMixin fails with "Promise rejected before it exists"

THE ROUTE import Ember from "ember"; import UnauthenticatedRouteMixin from 'ember-simple-auth/mixins/unauthenticated-route-mixin'; const { Route, } = Ember;​ export default Route.extend(UnauthenticatedRouteMixin, { }); THE TEST import {…
Sid W.
  • 97
  • 1
  • 8
3
votes
1 answer

Ember Simple Auth - logout when session is invalidated

I set up ember simple auth using oauth2 authentication/ Bearer authorization with an express server. The flow works as intended: access/refresh tokens are issued and refreshed on schedule. When the user logs out, the tokens are revoked on the server…
Alex Aloia
  • 101
  • 2
3
votes
2 answers

Ember Simple Auth immediately invalidates the session after authenticating with Torii

I am trying to set up Torii with my own OAuth flow and Ember-Simple-Auth. I can get a successful authentication event, but immediately after I authenticate, the invalidateSession trigger is fired causing my session to end. I can see this by…
shicholas
  • 6,123
  • 3
  • 27
  • 38
3
votes
1 answer

Save data in localstorage of browers in ember simple auth

I have used ember-simple-auth for fb login.I am able fetch the fb's access_token and sending the token to my server for exchange of server token.This works fine and and I am able to make my transition to user feed page.But the problem I am facing is…
3
votes
1 answer

How do you inject the session for a unit test in ember-simple-auth?

I am unable to setup my unit test for an application route in my ember application. Very simple route: import Ember from 'ember'; import ApplicationRouteMixin from 'ember-simple-auth/mixins/application-route-mixin'; export default…
Tim Overly
  • 425
  • 4
  • 10
3
votes
1 answer

Ember Simple Auth with Multiple Devise Scopes

I have the following scenario: Rails app with User and Admin devise models, so I have two scopes. Created on ember app on router: Router.map(function() { this.route('panel', function() { this.route('login'); this.route('logout'); }); …
1
2
3
25 26