loopback-component-oauth2
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -1,4 +0,10 @@ | ||
2015-06-12, Version 2.1.0 | ||
2015-06-12, Version 2.1.1 | ||
========================= | ||
* Allow models to be customized via options (Raymond Feng) | ||
2015-06-11, Version 2.1.0 | ||
========================= | ||
* Fix typo (Raymond Feng) | ||
@@ -5,0 +11,0 @@ |
@@ -235,8 +235,9 @@ var debug = require('debug')('loopback:oauth2:models'); | ||
// Adapter for the oAuth2 provider | ||
var customModels = options.models || {}; | ||
var models = { | ||
users: users, | ||
clients: clients, | ||
accessTokens: token, | ||
authorizationCodes: code, | ||
permissions: permission | ||
users: customModels.users || users, | ||
clients: customModels.clients || clients, | ||
accessTokens: customModels.accessTokens || token, | ||
authorizationCodes: customModels.authorizationCodes || code, | ||
permissions: customModels.permission || permission | ||
}; | ||
@@ -243,0 +244,0 @@ |
{ | ||
"name": "loopback-component-oauth2", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "OAuth 2.0 provider for LoopBack", | ||
@@ -51,3 +51,3 @@ "keywords": [ | ||
"optionalDependencies": { | ||
"sl-blip": "http://blip.strongloop.com/loopback-component-oauth2@2.1.0" | ||
"sl-blip": "http://blip.strongloop.com/loopback-component-oauth2@2.1.1" | ||
}, | ||
@@ -54,0 +54,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
458299
4288