Socket
Socket
Sign inDemoInstall

@nrfcloud/api-gateway-authorizer

Package Overview
Dependencies
26
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nrfcloud/api-gateway-authorizer

Custom authorizer for API Gateway


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Custom API Gateway Authorizer

npm version Build Status Test Coverage
Greenkeeper badge semantic-release Commitizen friendly
DeepScan Grade Known Vulnerabilities Maintainability

Authorizes requests to the nRF Cloud API with Cognito Tokens.

It fetches the Cognito Identity ID for the user pool token. The user information will be on event.requestContext.authorizer:

{
    cognitoIdentityId: 'us-east-1:...', 
    'cognito:username': 'alex.doe@example.com',
    email: 'alex.doe@example.com'
}

Tests

Set these environment variables:

user_pool_url=https://cognito-idp.us-east-1.amazonaws.com/us-east-1_fdiBa7JSO
identity_pool_id=us-east-1:c00e1327-dfc2-4aa7-a484-8ca366d11a68
username=user@example.com
password=changeme
client_id=bmoej5j8t187jmnumu00jrt2v
AWS_ACCESS_KEY_ID=changeme
AWS_SECRET_ACCESS_KEY=changeme

Keywords

FAQs

Last updated on 09 Mar 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc