id: api-mojoauth

info:
  name: MojoAuth API Test
  author: daffainfo
  severity: info
  description: Secure and modern passwordless authentication platform
  reference:
    - https://mojoauth.com/docs/
    - https://github.com/daffainfo/all-about-apikey/tree/main/mojoauth
  metadata:
    max-request: 1
  tags: token-spray,mojoauth

self-contained: true

http:
  - raw:
      - |
        POST https://api.mojoauth.com/token/jwks HTTP/1.1
        Host: api.mojoauth.com
        X-API-Key: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"keys"'
          - '"kty"'
          - '"kid"'
        condition: and
# digest: 490a0046304402207d025a9139f3952505fc608034e1a6557485693a2d9902281466513623c218d30220046943afe16e28085415b93ed1481f4614abfa5c34f9043dff990cb8ec0d8ef0:922c64590222798bb761d5b6d8e72950