Socket
Book a DemoInstallSign in
Socket

@stolostron/security-middleware

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stolostron/security-middleware

Security middleware for authentication

1.0.6
latest
Source
npmnpm
Version published
Maintainers
2
Created
Source

security-middleware

Security middleware for the Openshift OAuth server

Usage

Production

No configuration is required to run it in production mode.

Development

To run it locally, you will need to set following environment variables:

OAUTH2_CLIENT_ID      # OAuth Client ID
OAUTH2_CLIENT_SECRET  # OAuth Client Secret
OAUTH2_REDIRECT_URL   # Redirect URL
API_SERVER_URL        # Kubernetes API URL
SERVICEACCT_TOKEN     # Kubernetes Access Token

For more information about Openshift OAuth, see the Openshift documentation

Use it

  • To protect the ui:

    const inspect = require('security-middleware')
    router.all(['/', '/*'], inspect.ui(), app)
    
  • To protect the api:

    const inspect = require('security-middleware')
    router.all(['/', '/*'], inspect.app, app)
    

FAQs

Package last updated on 27 Jul 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.