ember-cli-simple-auth
Advanced tools
Comparing version 0.6.6 to 0.6.7
@@ -1,3 +0,11 @@ | ||
import initializer from 'simple-auth/initializer'; | ||
import Configuration from 'simple-auth/configuration'; | ||
import setup from 'simple-auth/setup'; | ||
import ENV from '../config/environment'; | ||
export default initializer; | ||
export default { | ||
name: 'simple-auth', | ||
initialize: function(container, application) { | ||
Configuration.load(container, ENV['simple-auth'] || {}); | ||
setup(container, application); | ||
} | ||
}; |
@@ -6,4 +6,4 @@ module.exports = { | ||
afterInstall: function() { | ||
return this.addBowerPackageToProject('ember-simple-auth', '0.6.6'); | ||
return this.addBowerPackageToProject('ember-simple-auth', '0.6.7'); | ||
} | ||
}; |
@@ -0,1 +1,3 @@ | ||
var path = require('path'); | ||
module.exports = { | ||
@@ -21,3 +23,3 @@ name: 'Ember CLI Simple Auth', | ||
'simple-auth/configuration': ['default'], | ||
'simple-auth/initializer': ['default'] | ||
'simple-auth/setup': ['default'] | ||
} | ||
@@ -24,0 +26,0 @@ }); |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.6.6", | ||
"version": "0.6.7", | ||
"description": "Include the Ember Simple Auth base library into an Ember CLI application.", | ||
@@ -8,0 +8,0 @@ "main": "index.js", |
@@ -8,3 +8,3 @@ # Ember Simple Auth | ||
**Ember Simple Auth OAuth 2.0 requires at least Ember CLI 0.0.42.** | ||
**Ember Simple Auth requires at least Ember CLI 0.0.44.** | ||
@@ -20,11 +20,11 @@ To install simply run | ||
**Ember CLI now uses `window.[AppName]ENV` for environment configuration | ||
variables. Ember Simple Auth relies on `window.ENV` to read its configuration | ||
from though, so you'll also need to add this line to your `app/index.html` | ||
file:** | ||
### Configuration | ||
```diff | ||
window.MyAppENV = {{ENV}}; | ||
+ window.ENV = window.MyAppENV; | ||
window.EmberENV = window.MyAppENV.EmberENV; | ||
Ember Simple Auth uses the Ember CLI project's configuration as defined in | ||
`config/environment.js`. Configure values for `ENV['simple-auth']`, e.g.: | ||
```js | ||
ENV['simple-auth] = { | ||
serverTokenRevocationEndpoint: '/revoke' | ||
}; | ||
``` | ||
@@ -31,0 +31,0 @@ |
4124
41