New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2.0 to 2.2.1

6

CHANGES.md

@@ -0,1 +1,7 @@

2015-06-16, Version 2.2.1
=========================
* Allow options.userModel/applicationModel to be strings (Raymond Feng)
2015-06-12, Version 2.2.0

@@ -2,0 +8,0 @@ =========================

8

lib/models/index.js
var debug = require('debug')('loopback:oauth2:models');
var helpers = require('../oauth2-helper');
/**

@@ -19,5 +20,8 @@ * Create oAuth 2.0 metadata models

var userModel = options.userModel || loopback.getModelByType(loopback.User);
var applicationModel = options.applicationModel
var userModel = loopback.findModel(options.userModel) ||
loopback.getModelByType(loopback.User);
debug('User model: %s', userModel.modelName);
var applicationModel = loopback.findModel(options.applicationModel)
|| loopback.getModelByType(loopback.Application);
debug('Application model: %s', applicationModel.modelName);

@@ -24,0 +28,0 @@ var oAuthTokenModel = oauth2.OAuthToken;

{
"name": "loopback-component-oauth2",
"version": "2.2.0",
"version": "2.2.1",
"description": "OAuth 2.0 provider for LoopBack",

@@ -51,3 +51,3 @@ "keywords": [

"optionalDependencies": {
"sl-blip": "http://blip.strongloop.com/loopback-component-oauth2@2.2.0"
"sl-blip": "http://blip.strongloop.com/loopback-component-oauth2@2.2.1"
},

@@ -54,0 +54,0 @@ "engines": {

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