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

lambda-custom-authorizer-middleware

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-custom-authorizer-middleware - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

lib/index.js

@@ -46,3 +46,3 @@ 'use strict';

* localAuthorizer: {
* handlerPath: '../other-project/lambda/auth',
* handlerPath: '../../../../other-project/lambda/auth', // NOTE: path is relative to the package inside node_modules/
* handlerName: 'handler'

@@ -49,0 +49,0 @@ * }

{
"name": "lambda-custom-authorizer-middleware",
"version": "1.0.2",
"version": "1.0.3",
"description": "Adds support of custom lambda authorizers for local offline usage, e.g. with serverless-offlin",

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

@@ -37,2 +37,4 @@ # AWS Lambda Local Middleware

Note, it's installed not in dev deps.
```sh

@@ -42,5 +44,9 @@ $ yarn add lambda-custom-authorizer-middleware

## Usage
Due to the fact this package is meant to be used with [serverless-offline](https://github.com/dherault/serverless-offline)
it relies on its environment variable `IS_OFFLINE` to switch on using local Lambda function.
And as for now, it's limited to 1 kind of authorizer function per project.
## API

@@ -78,3 +84,3 @@

localAuthorizer: {
handlerPath: '../other-project/lambda/auth',
handlerPath: '../../../../other-project/lambda/auth', // NOTE: path is relative to the package inside node_modules/
handlerName: 'handler'

@@ -99,3 +105,3 @@ }

```sh
DEBUG=lambda-custom-authorizer-middleware:*
DEBUG=lambda-custom-authorizer-middleware sls offline start
```

@@ -102,0 +108,0 @@

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