id: oidc-detect

info:
  name: Detect OpenID Connect provider
  author: jarijaas
  severity: info
  description: Detects OpenID Connect providers. See https://en.wikipedia.org/wiki/OpenID_Connect
  metadata:
    max-request: 1
  tags: tech,oidc,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/.well-known/openid-configuration"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - issuer
          - authorization_endpoint
        condition: and
# digest: 4b0a00483046022100bbe2039e7baf60b57807d453f90d5d12d7d9e9fc54f16ea087741201d8f2394d022100fad4fd343e5b55ee978f1b5f38c4d49d8e86e5a9fe3490c7147cd64d70665023:922c64590222798bb761d5b6d8e72950