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-beta1 to 2.0.0-beta2

20

CHANGES.md

@@ -0,4 +1,14 @@

2015-01-07, Version 2.0.0-beta2
===============================
* Allow declarative config of OAuth2 component (Miroslav Bajtoš)
* Fix bad CLA URL in CONTRIBUTING.md (Ryan Graham)
2014-12-17, Version 2.0.0-beta1
===============================
* v2.0.0-beta1 (Raymond Feng)
* Update deps (Raymond Feng)

@@ -158,6 +168,2 @@

2014-01-05, Version 1.0.1
=========================
* Bump version to 1.0.1. (Jared Hanson)

@@ -175,6 +181,2 @@

2013-09-24, Version 1.0.0
=========================
* Bump version to 1.0.0. (Jared Hanson)

@@ -346,4 +348,2 @@

* Update support files. (Jared Hanson)
* Port authorizationCode exchange test cases to Mocha. (Jared Hanson)

@@ -350,0 +350,0 @@

@@ -17,3 +17,3 @@ ### Contributing ###

* Sign the [Contributor License Agreement](https://cla.strongloop.com/strongloop/loopback-component-oauth2)
* Sign the [Contributor License Agreement](https://cla.strongloop.com/agreements/strongloop/loopback-component-oauth2)

@@ -20,0 +20,0 @@ * Submit a pull request through Github.

@@ -8,2 +8,25 @@ /**

exports.oAuth2Provider = loopbackOAuth2; // Keep backward-compatibility
exports.oauth2orize = require('./oauth2orize');
exports.oauth2orize = require('./oauth2orize');
/**
* A factory function for middleware handler that obtains the `authentication`
* handler configured by the OAuth2 component.
*/
exports.authenticate = function(options) {
var handler;
return function oauth2AuthenticateHandler(req, res, next) {
if (!handler) {
var app = req.app;
var authenticate = app._oauth2Handlers && app._oauth2Handlers.authenticate;
if (!authenticate) {
return next(new Error(
'The OAuth2 component was not configured for this application.'));
}
handler = authenticate(options);
}
return handler(req, res, next);
};
}

@@ -752,3 +752,5 @@ /**

app._oauth2Handlers = handlers;
return handlers;
};
{
"name": "loopback-component-oauth2",
"version": "2.0.0-beta1",
"version": "2.0.0-beta2",
"description": "OAuth 2.0 provider for LoopBack",

@@ -5,0 +5,0 @@ "keywords": [

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