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

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