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
0 answers

Ember 2.2.0: this.lookup is not a function

I updated from Ember 2.0.0 to 2.2.0 and no I get this "this.lookup is not a function" error when trying to get my custom authenicator. In my controller I'm doing this: var authenticator = self.lookup('authenticator:custom'); …
PowPi
  • 164
  • 1
  • 1
  • 10
0
votes
1 answer

Extending/modifying ember-simple-auth to check for auth cookies

I need to modify adaptive.js in ember-simple-auth for my app. Ultimately I want the restore method to look for two particular cookie security tokens that is shared across our platforms and construct the simple auth localstorage object based on these…
Malcr001
  • 8,179
  • 9
  • 44
  • 57
0
votes
1 answer

How to use Facebook OAuth with Ember Simple Auth?

I have an Ember.js app using Ember Simple Auth. The API returns an auth token on successful sign in with email and password. I'm trying to add Facebook Login using their Javascript SDK. Upon successful sign in with Facebook, I would like to post the…
Andrew
  • 227,796
  • 193
  • 515
  • 708
0
votes
1 answer

Cannot connect Ember Simple Auth and DRF Token Auth

I have a trouble with Ember Simple Auth. I'm trying to connect my server-side application, which working on Django 1.9 with DRF, and client-side which working on Ember 2.2. On server side I'm obtaining token on…
0
votes
1 answer

Move to another hbs in ember after the authentication is done

I have an app in which I have include a fb login.I am using ember-simple-auth for authorization and session manganement.I am able to authenticate the user and move to my "feed" hbs .The problem is when I open the app on another tab it is rendering…
nandanself
  • 835
  • 8
  • 21
0
votes
2 answers

Ember-simple-auth: How to add authorization header to browser-initiated requests

I'm using oAuth2. The DataAdapterMixin automatically adds the Authorization header to all Ember Data requests. The session service authorize method can be used to add it to Ajax calls, but how can I ensure the header is added to GET requests made…
0
votes
1 answer

Can't change session service name in torii

I'm using ember-simple-auth and emberfire to authenticate users on my app. One thing I don't like about the defaults is that there is both a "session" service and a "session" object on the service. So, I opened config/environment.js and changed: var…
user341493
  • 414
  • 1
  • 7
  • 15
0
votes
1 answer

Ember-Simple-Auth: How to inject token in ajax request

sorry for that (maybe) silly question. Im super new to this topic! I created a custom authorizer: import Ember from 'ember'; import Base from 'ember-simple-auth/authorizers/base'; export default Base.extend({ authorize:…
orgertot
  • 197
  • 16
0
votes
1 answer

Ember simple auth, how to update the store without using private API?

So I've been using the updateStore method on older versions of Ember simple auth (0.7.4). The reason is that, the user might change a certain setting of the application, for example he disables fx sounds, and I'd like to save this new setting in his…
tehmaestro
  • 1,010
  • 2
  • 11
  • 21
0
votes
2 answers

Ember-simple-auth with ember-cli-simple-auth-token

I'm trying to use ember-simple-auth with ember-cli-simple-auth-token: "ember-cli-simple-auth-token": "^0.7.3", "ember-simple-auth": "1.0.1" And that's my configurations: ENV['simple-auth-token'] = { authorizer:…
user5487299
0
votes
1 answer

Configuring ember-simple-auth with ember-cli-simple-auth-token

I would like to use ember-simple-auth with ember-cli-simple-auth-token , for this, i installed and put in my configs: ENV['simple-auth-token'] = { identificationField: 'email', serverTokenEndpoint: 'http://localhost:3000/token' }; But i…
user5487299
0
votes
0 answers

Chrome - LocalStorage - stringified JSON object getting truncated

Using Windows 10; Google Chrome Version 46.0.2490.71...strangely I see this happening when I am trying it out in an ember app session over a https on localhost. It works fine with non-https session. When I attempt to setItem the following JSON in…
0
votes
1 answer

Ember Simple Auth: Session - no authorize method?

I am reading documentation of the Ember Simple Auth. I want to send authorized ajax request (outside of the Ember store). I've found out there is a method for that. However when I try it to call inside my component, I get error "TypeError:…
yaqwsx
  • 569
  • 1
  • 5
  • 14
0
votes
1 answer

Ember-simple-auth custom authorizer not called

I'm trying to implement custom auth with ember-simple-auth and I stuck at the start. I have app/autheticators/digest.js import Base from 'ember-simple-auth/authenticators/base'; import Ember from 'ember'; export default Base.extend({ …
Crabar
  • 1,829
  • 1
  • 14
  • 26
0
votes
1 answer

Using simple auth without Ember-cli

I want to use simple auth without Ember-cli. Up until version 0.8.0, simple auth was distributed as a bower addon, and could be imported with the AMD module inside the bower package (ember-simple-auth/simple-auth.amd.js). Since I want to use the…
Martin
  • 2,302
  • 2
  • 30
  • 42