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
17
votes
3 answers

Workflow for Ember-simple-auth, Torii and Facebook Oauth2

After my previous question about ember-simple-auth and torii, I successfully authenticate my users with their Facebook accounts. But currently, torii's provider facebook-oauth2 is returning an authorization code from Facebook ; when the promise…
obo
  • 1,652
  • 2
  • 26
  • 50
11
votes
4 answers

CORS preflight channel did not succeed

I'm trying to build a Ember app with PHP REST framework as my api locally. The Ember app is being served at http://localhost:4200 and the api is being served from just http://localhost. This is causing a CORS issue. I've tried everything that I can…
NicholasJohn16
  • 2,390
  • 2
  • 21
  • 45
10
votes
4 answers

Ember Simple Auth: Session lost on refresh

I'm using Ember Simple Auth Devise v 0.6.4 in an Ember-cli app. I can log in fine but when I refresh the page the session is lost. (Tested in Firefox and Chrome.) Right after logging in, inspecting the localStorage shows the session and after…
niftygrifty
  • 3,452
  • 2
  • 28
  • 49
8
votes
3 answers

Ember Simple Auth - injecting current user into every route

I am building a site using Ember Simple Auth. I followed these instructions to try and add the current user object to the session and it worked, using this slightly adapted code: import Ember from 'ember'; import Session from…
Joe Czucha
  • 4,123
  • 2
  • 20
  • 28
6
votes
1 answer

Redirecting from HTTP to HTTPS w/ Simple Auth

I was hoping to get some recommendations on how to approach redirecting users from HTTP to HTTPS using an ember initializer with ember-simple-auth. `import ENV from 'cio/config/environment'` SSLInitializer = name: 'ssl' before:…
alvincrespo
  • 9,224
  • 13
  • 46
  • 60
6
votes
1 answer

Ember Simple Auth different redirects after authentication

I'm using Ember simple auth in my app and it's working great, but I've run into a scenario that I'm having trouble getting around. The library lets you specify the route to redirect to after a successful authentication by overriding…
Peter Brown
  • 50,956
  • 18
  • 113
  • 146
5
votes
2 answers

Managing user roles in emberjs?

I have a nodejs api as shown below route.post("/token",function(req,res){ authLib .checkForm(req.body) .then(authLib.findUser) .then(authLib.isValidUser) .then(authLib.authenticate) …
georoot
  • 3,557
  • 1
  • 30
  • 59
5
votes
1 answer

ember-simple-auth doesn't add Token to every request

I'm using Ember 1.8.1, Ember Data 1.0.0-beta.12, Handlebars 1.3.0, jQuery 1.11.1, Ember Simple Auth 0.7.2 and Ember Simple Auth Devise 0.7.2 for my frontend. My backend is backed with Rails, Grape and Devise. Now I'm trying to build a simple…
Slevin
  • 4,268
  • 12
  • 40
  • 90
5
votes
1 answer

How to use a custom authorizer and custom authenticator for ember simple-auth in ember cli

I don't understand how I'm supposed to include my custom authenticator and custom authorizor with ember cli. Where to put it and what to include and how to do it. The cli example for simple-auth provided unfortunately does not cover custom…
Preexo
  • 2,102
  • 5
  • 29
  • 37
5
votes
1 answer

can I use ember-simple-auth with express/passport session domain cookies

I have a project going on and I've been using the server side to handle my authentication and authorization through express/passport domain cookies which kind of auto-magically handle the state by sending the sid cookie back and forth. I had not…
mobetta
  • 417
  • 5
  • 15
5
votes
2 answers

How to store the user in a session

I am trying to set up ember-simple-auth with a django-rest-framework backend, but I'm running into some trouble saving the user to the session. I have to be able to do something like this in my templates:

Welcome back, {{session.user}}

So…
aquavitae
  • 17,414
  • 11
  • 63
  • 106
5
votes
1 answer

ember-simple-auth Password Update and Reset

I'm using ember-simple-auth and the Devise adapter for my Ember.js app. I need to create a way for users to do the following: Update their password (with new password and confirmation fields) Recover/reset their password Is there a way to do this…
5
votes
1 answer

Access user's account info with Ember Simple Auth

I'm using ember-simple-auth in my application and it's working well, but I would like to be able to display properties from the current user (such as email or name) in the UI. In the past I've used an application initializer to do this and…
Peter Brown
  • 50,956
  • 18
  • 113
  • 146
4
votes
1 answer

Implementing a custom ember-simple-auth Authenticator

Firstly, I am not a seasoned JS Developer, so please excuse obvious mistakes that I could have made. I am trying to implement a custom Authenticator for authenticating a user with Keycloak using the OAuth2 Password Grant which requires the client_id…
4
votes
1 answer

EmberJS: When should I use the Torii vs Ember-Simple-Auth?

I'm trying to learn authentication for a web app that I'm writing. All I want is a login and password, and to make sure the user can't write/edit each others posts unless they are logged in. I'm not sure I fully understand it. But it seems that…
Cameron
  • 2,805
  • 3
  • 31
  • 45
1
2 3
25 26