{
  "info": {
    "_postman_id": "4e8f46b5-1a21-4cc9-b071-5e96975aee0a",
    "name": "dualshield-auth-api",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "8162912"
  },
  "item": [
    {
      "name": "oauth/token",
      "event": [
        {
          "listen": "test",
          "script": {
            "exec": [
              "var jsonBody = JSON.parse(responseBody);",
              "pm.collectionVariables.set(\"access_token\", jsonBody.access_token);"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "request": {
        "auth": {
          "type": "noauth"
        },
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"client_id\": \"{{client_id}}\",\n    \"client_secret\": \"{{client_secret}}\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{fqdn}}:{{port}}/das5/rest/oauth/token",
          "protocol": "https",
          "host": [
            "{{fqdn}}"
          ],
          "port": "{{port}}",
          "path": [
            "das5",
            "rest",
            "oauth",
            "token"
          ]
        }
      },
      "response": []
    },
    {
      "name": "system/getInfo",
      "request": {
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{access_token}}",
              "type": "string"
            }
          ]
        },
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{fqdn}}:{{port}}/das5/rest/system/getInfo",
          "protocol": "https",
          "host": [
            "{{fqdn}}"
          ],
          "port": "{{port}}",
          "path": [
            "das5",
            "rest",
            "system",
            "getInfo"
          ]
        }
      },
      "response": []
    },
    {
      "name": "static-password",
      "request": {
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{access_token}}",
              "type": "string"
            }
          ]
        },
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"user\":\n    {\n        \"loginName\": \"{{user_name}}\",\n        \"domain.dnsName\": \"{{domain_dns_name}}\"\n    },\n    \"credential\":\n    {\n        \"method\": \"SPASS\",\n        \"password\": \"{{user_password}}\"\n    },\n    \"return\": [\"*\"]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{fqdn}}:{{port}}/das5/rest/auth/verify",
          "protocol": "https",
          "host": [
            "{{fqdn}}"
          ],
          "port": "{{port}}",
          "path": [
            "das5",
            "rest",
            "auth",
            "verify"
          ]
        }
      },
      "response": []
    },
    {
      "name": "verify_odp",
      "request": {
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{access_token}}",
              "type": "string"
            }
          ]
        },
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"user\":\n    {\n        \"loginName\": \"{{user_name}}\",\n        \"domain.dnsName\": \"{{domain_dns_name}}\"\n    },\n    \"credential\":\n    {\n        \"method\": \"OTPoD\",\n        \"otp\": \"123456\"\n    },\n    \"return\": [\"*\"]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{fqdn}}:{{port}}/das5/rest/auth/verify",
          "protocol": "https",
          "host": [
            "{{fqdn}}"
          ],
          "port": "{{port}}",
          "path": [
            "das5",
            "rest",
            "auth",
            "verify"
          ]
        }
      },
      "response": []
    },
    {
      "name": "one-time-password",
      "request": {
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{access_token}}",
              "type": "string"
            }
          ]
        },
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"user\":\n    {\n        \"loginName\": \"{{user_name}}\",\n        \"domain.dnsName\": \"{{domain_dns_name}}\"\n    },\n    \"credential\":\n    {\n        \"method\": \"OTP\",\n        \"otp\": \"821896\"\n    },\n    \"return\": [\"*\"]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{fqdn}}:{{port}}/das5/rest/auth/verify",
          "protocol": "https",
          "host": [
            "{{fqdn}}"
          ],
          "port": "{{port}}",
          "path": [
            "das5",
            "rest",
            "auth",
            "verify"
          ]
        }
      },
      "response": []
    },
    {
      "name": "emergency-code",
      "request": {
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{access_token}}",
              "type": "string"
            }
          ]
        },
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"user\":\n    {\n        \"loginName\": \"{{user_name}}\",\n        \"domain.dnsName\": \"{{domain_dns_name}}\"\n    },\n    \"credential\":\n    {\n        \"method\": \"ECODE\",\n        \"otp\": \"29502234\"\n    },\n    \"return\": [\"*\"]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{fqdn}}:{{port}}/das5/rest/auth/verify",
          "protocol": "https",
          "host": [
            "{{fqdn}}"
          ],
          "port": "{{port}}",
          "path": [
            "das5",
            "rest",
            "auth",
            "verify"
          ]
        }
      },
      "response": []
    },
    {
      "name": "send-otp",
      "request": {
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{access_token}}",
              "type": "string"
            }
          ]
        },
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"user\":\n    {\n        \"loginName\": \"{{user_name}}\",\n        \"domain.dnsName\": \"{{domain_dns_name}}\"\n    },\n    \"credential\":\n    {\n        \"password\": \"{{user_password}}\"\n    }, \n    \"options\":\n    {\n        \"channel\": \"SMS\"\n    }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{fqdn}}:{{port}}/das5/rest/auth/sendOTP",
          "protocol": "https",
          "host": [
            "{{fqdn}}"
          ],
          "port": "{{port}}",
          "path": [
            "das5",
            "rest",
            "auth",
            "sendOTP"
          ]
        }
      },
      "response": []
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{access_token}}",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "requests": {},
        "exec": [
          ""
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "requests": {},
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "client_id",
      "value": "0d6cf2eba8da456586df84b90f3a501b"
    },
    {
      "key": "client_secret",
      "value": "secret-6b8bdc486e784a2cadf8aaeed7f40d44"
    },
    {
      "key": "access_token",
      "value": ""
    },
    {
      "key": "fqdn",
      "value": ""
    },
    {
      "key": "port",
      "value": ""
    },
    {
      "key": "user_name",
      "value": ""
    },
    {
      "key": "domain_dns_name",
      "value": ""
    },
    {
      "key": "user_password",
      "value": ""
    }
  ]
}