New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@webiny/api-security

Package Overview
Dependencies
Maintainers
1
Versions
578
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webiny/api-security

The API for the Webiny Security (webiny-app-security) app.

  • 2.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.3K
increased by81%
Maintainers
1
Weekly downloads
 
Created
Source

@webiny/api-security

code style: prettier PRs Welcome

The API for the Webiny Security (@webiny/app-security) app.

Install

npm install --save @webiny/api-security

Or if you prefer yarn:

yarn add @webiny/api-security

Security installation

Installation mutation can be executed when certain conditions are met:

  • there must be no existing users in the Webiny DB, or...
  • there must be no existing users in the 3rd party auth provider, or...
  • all of the above

If the above conditions are met, you can execute an install mutation to create a new user with full-access role (a root user).

The logic behind user creation is built with the following scenarios in mind. Say you want to create a new user with admin@webiny.com email:

  1. if a matching user is NOT FOUND in the Webiny DB, but is FOUND in auth provider, a new local user is created. Auth provider user remains intact.
  2. if a matching user is FOUND in the Webiny DB but is NOT FOUND in auth provider, a new user is created on your auth provider, and the local user's data is updated with the new firstName/lastName.
  3. if a matching user is NOT FOUND anywhere, a new user is first created in the Webiny DB, and after that, a new user is created in your auth provider.

FAQs

Package last updated on 19 Jan 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc