Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loopback-component-oauth2

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loopback-component-oauth2 - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

12

CHANGES.md

@@ -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 @@ =========================

18

common/models/oauth-client-application.json

@@ -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.

8

lib/models/index.js

@@ -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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc