@trifinlabs/ramp-api-security
v2.5.0
Published
RAMP-API security component
Downloads
6
Readme
#RAMP API Security Module
##Usage
Install as dependency
npm i @trifinlabs/ramp-api-security
Copy environment variables
cat ./node_modules/@trifinlabs/ramp-api-security/.env.dist >> .env
##Sample component-config.json
{
"security": {
"enabled": true,
"publicEndpoints": [
{
"path": "/Messages/push.*",
"method": "POST"
},
{
"path": "/Auth/signup.*",
"method": "POST"
},
{
"path": "/Auth/signin.*",
"method": "POST"
},
{
"path": "/Auth/authorize*",
"method": "POST"
},
{
"path": "/Job/.*",
"method": "GET"
},
{
"path": "/Auth/social/signup.*",
"method": "POST"
}
]
}
}