2021-10-24 02:25:47 +00:00
|
|
|
id: api-fortitoken-cloud
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: FortiToken Cloud API Test
|
|
|
|
author: dwisiswant0
|
|
|
|
severity: info
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://docs.fortinet.com/document/fortitoken-cloud/latest/rest-api/456035/overview
|
2021-10-24 04:48:17 +00:00
|
|
|
tags: token-spray,fortinet
|
2021-10-24 02:25:47 +00:00
|
|
|
|
|
|
|
self-contained: true
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "https://ftc.fortinet.com:9696/api/v1/user"
|
|
|
|
headers:
|
|
|
|
Authorization: Bearer {{token}}
|
|
|
|
|
2021-10-24 02:27:27 +00:00
|
|
|
matchers-condition: and
|
2021-10-24 02:25:47 +00:00
|
|
|
matchers:
|
2021-10-24 02:27:27 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2021-10-24 02:25:47 +00:00
|
|
|
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
regex:
|
|
|
|
- "error_(code|message|name)"
|
|
|
|
negative: true
|