loopback-component-oauth2
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -0,1 +1,13 @@ | ||
2015-06-12, Version 2.1.0 | ||
========================= | ||
* Fix typo (Raymond Feng) | ||
* Clean up oAuth2 client app attributes (Raymond Feng) | ||
* Add blip and license check (Raymond Feng) | ||
* Updated example link (Bryan Clark) | ||
2015-05-28, Version 2.0.0 | ||
@@ -2,0 +14,0 @@ ========================= |
@@ -41,7 +41,21 @@ { | ||
"jwksURI": "string", | ||
"jwks": "string", | ||
"jwks": { | ||
"type": "string", | ||
"mysql": { | ||
"dataLength": 4096, | ||
"dataType": "TEXT" | ||
} | ||
}, | ||
"softwareId": "string", | ||
"softwareVersion": "string" | ||
"softwareVersion": "string", | ||
"callbackUrls": null, | ||
"permissions": null, | ||
"authenticationEnabled": null, | ||
"anonymousAllowed": null, | ||
"authenticationSchemes": null, | ||
"icon": null, | ||
"url": null | ||
}, | ||
"comments": "https://tools.ietf.org/html/draft-ietf-oauth-dyn-reg-24" | ||
} |
@@ -0,1 +1,2 @@ | ||
require('strongloop-license')('gateway:gateway=StrongLoop API Gateway', 'EXIT'); | ||
/** | ||
@@ -2,0 +3,0 @@ * Module dependencies. |
@@ -46,5 +46,5 @@ var debug = require('debug')('loopback:oauth2:models'); | ||
var getTTL = typeof options.getTTL === 'function' ? options.getTTL : | ||
function(grantType, clientId, resourceOwner, scopes) { | ||
function(responseType, clientId, resourceOwner, scopes) { | ||
if (typeof options.ttl === 'function') { | ||
return options.ttl(grantType, clientId, resourceOwner, scopes); | ||
return options.ttl(responseType, clientId, resourceOwner, scopes); | ||
} | ||
@@ -55,5 +55,5 @@ if (typeof options.ttl === 'number') { | ||
if (typeof options.ttl === 'object' && options.ttl !== null) { | ||
return options.ttl[grantType]; | ||
return options.ttl[responseType]; | ||
} | ||
switch (grantType) { | ||
switch (responseType) { | ||
case 'code': | ||
@@ -60,0 +60,0 @@ return 300; |
{ | ||
"name": "loopback-component-oauth2", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "OAuth 2.0 provider for LoopBack", | ||
@@ -39,2 +39,3 @@ "keywords": [ | ||
"pkginfo": "^0.3.0", | ||
"strongloop-license": "^1.3.0", | ||
"uid2": "^0.0.3", | ||
@@ -50,2 +51,5 @@ "utils-merge": "^1.0.0" | ||
}, | ||
"optionalDependencies": { | ||
"sl-blip": "http://blip.strongloop.com/loopback-component-oauth2@2.1.0" | ||
}, | ||
"engines": { | ||
@@ -52,0 +56,0 @@ "node": ">= 0.4.0" |
@@ -47,3 +47,3 @@ # loopback-component-oauth2 | ||
This [example](https://github.com/strongloop/loopback-gateway) demonstrates | ||
This [example](https://github.com/strongloop/strong-gateway) demonstrates | ||
how to implement an OAuth service provider, complete with protected API access. |
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
458004
4287
16
+ Addedstrongloop-license@^1.3.0
+ Addedjwt-simple@0.5.6(transitive)
+ Addedstrong-license@1.2.3(transitive)
+ Addedstrongloop-license@1.5.2(transitive)
+ Addeduser-home@1.1.1(transitive)