Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You are trying to use the torii authenticator but torii is not available #772

Closed
wayne-o opened this issue Nov 7, 2015 · 14 comments
Closed

Comments

@wayne-o
Copy link

wayne-o commented Nov 7, 2015

The following results in:

You are trying to use the torii authenticator but torii is not available. Inject torii into the authenticator with "torii: Ember.inject.service()".

But I have injected the torii service?

import Torii from 'ember-simple-auth/authenticators/torii';
import Ember from 'ember';

export default Torii.extend({
    torii: Ember.inject.service(),
    restore(data) {

        },
        authenticate(provider, options) {
            return new Ember.RSVP.Promise((resolve, reject) => {
                return this._super(provider, options)
                    .then((authResponse) => {

                    });
            });
        },
        invalidate() {

        }
});
@marcoow
Copy link
Member

marcoow commented Nov 9, 2015

Did you install torii (ember install torii)?

@wayne-o
Copy link
Author

wayne-o commented Nov 9, 2015

Yeah - I will try removing and re-adding. It is the latest though.

On Mon, 9 Nov 2015 at 08:42 Marco Otte-Witte notifications@github.com
wrote:

Did you install torii (ember install torii)?


Reply to this email directly or view it on GitHub
#772 (comment)
.

@wayne-o
Copy link
Author

wayne-o commented Nov 9, 2015

Still same issue I'm afraid

@wayne-o
Copy link
Author

wayne-o commented Nov 9, 2015

Anything else I can provide to help with this?

On Mon, 9 Nov 2015 at 10:09 Wayne Douglas wayne@prjatk.com wrote:

Yeah - I will try removing and re-adding. It is the latest though.

On Mon, 9 Nov 2015 at 08:42 Marco Otte-Witte notifications@github.com
wrote:

Did you install torii (ember install torii)?


Reply to this email directly or view it on GitHub
#772 (comment)
.

@marcoow
Copy link
Member

marcoow commented Nov 10, 2015

Check in Ember Inspector that the torii service is actually present ('services:torii').

@abhayathapa
Copy link

@wayne-o I had hard time figuring out but with "torii": "Vestorly/torii#0.6.0-beta.7" in your package.json it works

@marcoow
Copy link
Member

marcoow commented Nov 11, 2015

torii 0.6.0 has actually been released already: https://github.com/Vestorly/torii/releases/tag/0.6.0 No need to use the beta anymore.

@wayne-o
Copy link
Author

wayne-o commented Nov 11, 2015

Yeah already on 0.6.1...

here is before I click the login (facebook) button:

screen shot 2015-11-11 at 14 00 09

And after clicking:

screen shot 2015-11-11 at 14 00 40

@wayne-o
Copy link
Author

wayne-o commented Nov 12, 2015

Any clues on this one?

@wayne-o
Copy link
Author

wayne-o commented Nov 15, 2015

Anyone?

@wayne-o
Copy link
Author

wayne-o commented Nov 17, 2015

Is there a slack channel or anything for ESA?

@marcoow
Copy link
Member

marcoow commented Nov 17, 2015

There's an ember-simple-auth tag on stackoverflow - usually questions with that tag are answered pretty quickly. There is no slack room for ESA yet - maybe you can get someone to create one in the Ember.js Community Slack, I'd appreciate that.

@wayne-o
Copy link
Author

wayne-o commented Nov 19, 2015

Sorted!

I figured this one out - I still had my torii instance initializer... oops :p

@marcoow marcoow closed this as completed Nov 19, 2015
@marcoow
Copy link
Member

marcoow commented Nov 19, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants