@trifinlabs/ramp-api-security

2.5.0 • Public • Published

#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"
      }
    ]
  }
}

/@trifinlabs/ramp-api-security/

    Package Sidebar

    Install

    npm i @trifinlabs/ramp-api-security

    Weekly Downloads

    7

    Version

    2.5.0

    License

    Proprietary

    Unpacked Size

    7.92 kB

    Total Files

    8

    Last publish

    Collaborators

    • trifinlabs