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

FastBoot dependency whitelisting #1239

Merged
merged 1 commit into from
Mar 1, 2017
Merged

FastBoot dependency whitelisting #1239

merged 1 commit into from
Mar 1, 2017

Conversation

willviles
Copy link
Contributor

@willviles willviles commented Mar 1, 2017

Adds node-fetch to fastbootDependencies

This PR fixes Ember Simple Auth from breaking in Fastboot when using the OAuth2PasswordGrant authenticator, as referenced in #1138. The fix is to simply add node-fetch to the addon's whitelisted fastbootDependencies.

"ember-addon": {
  "configPath": "tests/dummy/config",
  "fastbootDependencies": {
    "node-fetch"
  }
}

See below for updated PR info.

@marcoow
Copy link
Member

marcoow commented Mar 1, 2017

I think this won't work because of ember-fastboot/ember-cli-fastboot#188

@willviles
Copy link
Contributor Author

You're right. I've changed the PR to simply update the README to notify of the need to add node-fetch to the app's whitelisted fastbootDependencies.

@willviles willviles changed the title Adds node-fetch to fastbootDependencies FastBoot dependency whitelisting Mar 1, 2017
Copy link
Member

@marcoow marcoow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

README.md Outdated
@@ -605,6 +605,16 @@ import CookieStore from 'ember-simple-auth/session-stores/cookie';
export default CookieStore.extend();
```

If you are using the [`OAuth2PasswordGrantAuthenticator`](http://ember-simple-auth.com/api/classes/OAuth2PasswordGrantAuthenticator.html), you must add `node-fetch` to your list of FastBoot whitelisted dependencies in `package.json`:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually applies to the Devise authenticator as well.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you format the text so that it adheres to the 80 chars line limit for consistency with the rest of the README?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated! 👍

@marcoow marcoow merged commit 3698152 into mainmatter:master Mar 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants