id: api-onelogin

info:
  name: OneLogin API Test
  author: dwisiswant0
  severity: info
  reference:
    - https://developers.onelogin.com/api-docs/2/getting-started/dev-overview
  metadata:
    max-request: 2
  tags: token-spray,onelogin

self-contained: true

http:
  - method: GET
    path:
      - "https://api.us.onelogin.com/api/2/apps"
      - "https://api.eu.onelogin.com/api/2/apps"

    headers:
      Authorization: Bearer {{token}}
    stop-at-first-match: true
    matchers:
      - type: word
        part: body
        words:
          - '"id":'
          - '"connector_id":'
          - '"auth_method":'
        condition: and
# digest: 490a0046304402202f9c8e5d93a93e4d38ace9389cf04dd90472deac762bd58bef00f886b481394502202c4c8e7c02fa34fb9d60d76a2704fa241e187cd0a961850ccd5689863f56af94:922c64590222798bb761d5b6d8e72950