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: 4b0a00483046022100c863b1c5238bae97a22123c1fbcc2dffca09b867f1799b647646ae4ecc1fa317022100e9d0e913bb9c5089ceb35ecb0caa5f24a658dbd956febbb59d91a64027c9c728:922c64590222798bb761d5b6d8e72950
