A set of clean abstractions for authentication in Ember.js
Questions tagged [torii]
47 questions
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
4
votes
3 answers
Closing an emberfire/torii session and logging out throws permission_denied errors
I am using EmberFire with the Torii for sessions. I am getting an odd issue when I log a user out, and the following errors are thrown in the console:
firebase.js:186 Error: permission_denied at /folders/-KKvrk3K_JOHxQWgR1km: Client doesn't have…

Adam Duro
- 882
- 1
- 9
- 21
3
votes
1 answer
Connecting to github with Ember.js and Torii (oauth2)
I'm trying to use the github-oauth2 provider in Torii, but I'm stumped on how I'm supposed to se tup some of the callbacks. I'll trace the code I'm using, as well as my understanding of it, and hopefully that can help pinpoint where I'm going…

Jeffrey Biles
- 988
- 7
- 24
3
votes
1 answer
Refresh application route after login
I would like to know what the correct way is to refresh my application route after a login, so that my model is loading correctly. At the moment i only get the desired results after hard refreshing the browser.
My application.js…

Frank Spin
- 1,463
- 15
- 23
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
2
votes
0 answers
torii facebook ember get user and name
Hi I want to get name and email from facebook authentication via torii and simple-auth, but I don't know how recovery this data. I can login via facebook but I can't get name or email.
Could you helpme please
This is my code:
//import Base from…

HalleyRios
- 602
- 1
- 4
- 18
2
votes
3 answers
Firebase 3.0 + Ember 2.0: The Torii adapter must implement `open` for a session to be opened
I'm having an issue with facebook authentication with the torii adapter, the error being: 'The Torii adapter must implement open for a session to be opened'.
I've visited many tutorials, and tried all presented methods, but most of them are usually…

Silvio Langereis
- 487
- 1
- 11
- 20
2
votes
2 answers
Firebase 3 Authentication with Emberfire and Torii
I'm trying to authenticate with Firebase's email/password provider, but keep getting the following error:
Uncaught TypeError: Cannot read property 'open' of undefined
Here's what my app looks like:
app/torii-adapters/applications.js
import Ember…

John
- 95
- 3
- 12
2
votes
2 answers
Torii session does not persist after refresh
Currently, my Ember-cli application logs out after refresh. I have altered my code a lot to try to get it to work, but none helped. If necessary, I will try to implement authentication with another provider.
I have a route for application, which is…

sallyp
- 226
- 3
- 12
2
votes
1 answer
Torii provider name from adapter?
I have a Torii adapter that is posting my e.g. Facebook and Twitter authorization tokens back to my API to establish sessions. In the open() method of my adapter, I'd like to know the name of the provider to write some logic around how to handle the…

mwp
- 8,217
- 20
- 26
2
votes
2 answers
EmberFire Authentication and ToriiFirebaseAdapter
I've followed the EmberFire guide to setting up authentication with the torii provider and it works perfectly. I'm looking to store the users data in firebase after the user has been authenticated and to have access to the user object throughout the…

sharklasers
- 23
- 4
2
votes
1 answer
Using ember-simple-auth and torii, modal never closes and session never updates despite successful server response
I'm attempting to allow multiple oauth providers using ember-cli, ember-simple-auth, torii and devise on my rails backend. Everything seems to work, but the modal never closes and the session in the client is never updated.
Steps to repro:
Click…

inknerd
- 23
- 5
2
votes
0 answers
Ember-Cli, Rails and Torii Session 400 Bad Request
I am new to ember-cli, currently I am having trouble with oauth2 with LinkedIn, the server side is rails. This is also my first question so please let me know if there's any other information needed or if it's too verbose. When i attempt to sign…

Jessica Koch
- 21
- 5
2
votes
1 answer
How to use OpenId Connect with ember-cli application?
Now that I'm looking to use Ember-cli for my front-end, I'd need to use OpenID Connect for authentication and authorisation.
Has anyone done anything like this before?. I couldn't find any examples so far. I came across 'ember-cli-simple-auth',…

genwip
- 1,027
- 1
- 12
- 20
1
vote
0 answers
Is it possible to use Torii with FastBoot in Ember?
I'm using Torii 0.10.1 with Ember 3.5 in order to use facebook-connect by injecting the torii service into the controller.
This works fine, but as soon as I enable FastBoot, I'm getting the following error:
There was an error running your app in…

Redsandro
- 11,060
- 13
- 76
- 106