Security middleware for the Openshift OAuth server
No configuration is required to run it in production mode.
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
-
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)