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

Ember Simple Auth Authorization issue

I am using Ember Simple Auth outh2 for my App. It works fine but i found an issue when open page in New Tab, when i open in new tab it is losing its authorization capabilities Eg, If an user able to edit data on Login, When i open new tab he lost…
santosh
  • 1,611
  • 1
  • 13
  • 21
1
vote
2 answers

ember cli simple auth devise last version 0.8.0-beta.1

I am trying to set up ember cli simple auth devise in my app, actually I found many examples and similar issues but still not able to solve a problem that I am fighting many hours, it is the last version of the addon 0.8.0-beta.1, the authentication…
Moh
  • 249
  • 3
  • 15
1
vote
1 answer

EmberJS simpleauth with devise authorizer not sending token header

I can't figure out how to get ember-simple-auth with ember-simple-auth-devise authorizer (version 0.7.2) to append the token header to my backend requests. Here is how my config/environment.js looks: var ENV = { modulePrefix: 'frontend-app', …
xrl
  • 2,155
  • 5
  • 26
  • 40
1
vote
2 answers

Ember Simple Auth - always login

I'm working on a closed system where you always need to be logged in. Mixing in the AuthenticatedRouteMixin does not work at the root (applicationroute) level. I suppose I could probably embed the login form and handle login on the root page, but…
user2105103
  • 11,599
  • 2
  • 18
  • 11
1
vote
2 answers

"Ember Simple Auth" invalidateSession from component

Trying to execute this code within a component's template // components/my-component.js {{#if session.isAuthenticated}} Sign out {{else}} {{#link-to 'signin'}}Sign in{{/link-to}} {{/if}} However, when…
Flavio
  • 846
  • 1
  • 9
  • 21
1
vote
1 answer

Getting oauth2-bearer working with simple-auth

I'm a big fan of the quality of the code and documentation for Ember's simple-auth but coming back to it after a few months on a new project I'm running into what is probably just a stupid oversight but it is a blocker and I can't seem to figure it…
ken
  • 8,763
  • 11
  • 72
  • 133
1
vote
1 answer

Ember Simple Auth (with token plugin) won't add the Authorization header with the token

I had a simple and working application with Ember CLI 0.1.12. I use the Ember Simple Auth addon with the Token authenticator and authorizer. https://github.com/jpadilla/ember-cli-simple-auth-token First, I wasn't able to authenticate, because I had…
Marc-François
  • 3,900
  • 3
  • 28
  • 47
1
vote
2 answers

calling overriden methods base in ES6

Give I have the following code: import Authenticator from 'simple-auth-torii/authenticators/torii'; export default Authenticator.extend({ restore: function(data) { }, authenticate: function(provider, options) { }, invalidate:…
user156888
1
vote
1 answer

Ember Torii facebook authentication not able to get user email

I am using Ember CLI + ember simple auth torii link to get authentication code from facebook for my ember app. This is my environment.js file ENV['torii'] = { providers: { 'facebook-oauth2': { apiKey: '865549306850377', …
Ajey
  • 7,924
  • 12
  • 62
  • 86
1
vote
0 answers

Ember js torii auth + node backend [Authentication]

I have used torii auth to get token from facebook/google And this is what gets saved in local storage…
Ajey
  • 7,924
  • 12
  • 62
  • 86
1
vote
1 answer

AuthenticatedRouteMixin: No redirection when route hooks are overridden

Authentication seems to be skipped if I define beforeModel hook in my index route. Maybe this overrides the mixin's beforeModel... Example: the following does not redirect me to /login until I remove 'beforeModel' from my route. The same for…
balafi
  • 2,143
  • 3
  • 17
  • 20
1
vote
0 answers

ember-simple-auth - help get me over the final hurdle

I am trying to port an app that is early in development from .NET to Node/Sails/Passport. The UI is an emberjs app. The backend can authenticate users using Facebook. That is tested and working. To now start integrate that into the UI i have made…
user156888
1
vote
1 answer

Invalidate a session on browser close in ember-simple-auth?

I'm pretty new to Ember.js and ember-simple-auth, so I hope you can help me. I'm using ember-simple-auth in my application. What I want to do is to invalidate the session when the browser is closed or the user leaves the page. This is only supposed…
1
vote
1 answer

Ember-Simple-Auth with Torii access user info

I've been working all week to get authentication working. I have gotten it working with Ember-CLI Ember-Simple-Auth Torii google-oauth2 provider However I have proven unsuccessful in getting the users information from google. I have tried…
Frozenfire
  • 677
  • 7
  • 15
1
vote
3 answers

Ember Simple Auth (Devise) after update, authenticate break

I did an update from 0.6.4 to 0.7.2 with Ember Simple Auth (not Ember CLI version) for devise, now my authentification doesn't work at all :(, do you have an idea ? thank you very much for your help :) PS : apparently, ApplicationController…