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.js - getting access token using simple auth/torii

I am using ember.js, simple auth, and torii for oauth with Spotify. I can currently log in and log out just fine, and looking at resources I can see I am getting an access token from Spotify. When I log session.data as the simple auth docs say, I…
0
votes
2 answers

Uncaught Error: Could not find module `ember-simple-auth/authenticators/base

I am using ember-cli-simple-auth and ember-cli-simple-auth-firebase packages and getting the following error: loader.js:218 Uncaught Error: Could not find module ember-cli-simple-auth/authenticators/base imported from…
msuberri
  • 21
  • 3
0
votes
1 answer

ember get current user information from session and setting currentUser to use inside template

I am using ember-simple-auth library with rails token based authentication in the backend. ember version is: ember-cli: 2.6.2 node: 6.3.0 ember-simple-auth: 1.1.0 I was successfully able to logged in a user. But can't able to access current user…
Bilal Basharat
  • 3,066
  • 6
  • 21
  • 20
0
votes
1 answer

Django rest + ember simple auth The authenticator “authenticator:oauth2” rejected to restore the session - invalidating

I use django rest framework and token auth as a backend auth. From backend token comes as this format when user credentials submitted {token: "cKCxxxxxxxxxxxxxxxxxxxxx"} on the frontend ember-simple auth i use oauth2 as a authenticator when i try…
0
votes
1 answer

How to get details about the current authenticated user in ember-simple-auth?

I want to know how can I get the information about the current user in Ember. I'm using ember-simple-auth. I followed this answer but couldn't access this.get('session.user_email'). However, if I do the following in my application.js route: export…
0
votes
1 answer

make custom API call with authentication

I am trying to develop an application that should eventually replace an existing (non-Ember) one and provide additional functionality. For a start, for anything not yet implemented in the new app, I want to redirect users to the existing one, using…
0
votes
1 answer

Different serverTokenEndpoint for login and registration

I'm using ember-simple-auth for logging in a user which is working fine. For logging a user in, I've to ping this endpoint: /auth/sign_in. However, for registering a new user, I've to ping a different endpoint: /auth. If I'm trying to use the…
Nirmalya Ghosh
  • 2,298
  • 3
  • 18
  • 33
0
votes
1 answer

How can I get the session stored in a Ember-Simple-Auth session?

I'm using ember-simple-auth to manage my app authentication. I have implemented my own authenticator, authorizer and adapter. Source code  Authenticator import Ember from 'ember'; import Base from 'ember-simple-auth/authenticators/base'; export…
EnriMR
  • 3,924
  • 5
  • 39
  • 59
0
votes
1 answer

Can I manually set session state to authenticated in embe simple auth?

I am using session based authentication common for django application (subdomainA.example.com) and SPA consuming django API (subdomainB.exmaple.com). I check certain artifact in my custom authenticator's restore methdo to determine either user is…
andilabs
  • 22,159
  • 14
  • 114
  • 151
0
votes
1 answer

How to access Ember-Simple-Auth-Token authorizer header in NodeJS endpoint

I am trying to figure out where the authorizer:application' gets set in the request. Should it be somewhere in the headers? I am unable to find it in the request in the nodejs endpoint when making requests from the app. The code I have in ember…
Giovanni
  • 580
  • 2
  • 11
  • 31
0
votes
1 answer

Ember 2.4 - get current user using a service and simple auth after login

I have the following problem with getting the current user using an instance initializer, a service and ember-simple-auth library. More specifically, I have managed to get all the attributes of my service "user" but only when I refresh the page…
Jack
  • 239
  • 1
  • 2
  • 12
0
votes
1 answer

How to view all response headers in ember with RESTAdapter

My response headers look like this HTTP/1.1 200 OK Server: nginx/1.9.7 Content-Type: application/json Transfer-Encoding: chunked Connection: keep-alive X-On-Trial: 1 Cache-Control: no-cache Access-Control-Allow-Origin: http://localhost:4200 Vary:…
Vlad
  • 978
  • 6
  • 13
0
votes
2 answers

How to handle authentication token string in Grape API and token_and_options?

I'm using Ember front-end with Grape API and to authenticate a page I have something like: def current_user return nil if headers['Authorization'].nil? @current_user ||= User.find_by_authentication_token( headers['Authorization'] …
0
votes
2 answers

Trouble upgrading to new ember-simple-auth

G'day all, I've been having trouble upgrading to a more recent version of the ember-simple-auth module. In particular I seem to have two challenges: 1) the application no longer transitions to the desired route after authenticating. the…
Andy Davison
  • 541
  • 4
  • 13
0
votes
1 answer

Is there any way that I can use ember-data way instead select2?

When I did not use Ember-data, my select2 component like: import Ember from 'ember'; export default Ember.TextField.extend({ didInsertElement() { var _this = this; this.$().select2({ placeholder: "waiting...", …
JeskTop
  • 481
  • 1
  • 4
  • 20