info:
  name: Creazione JWT
  type: http
  seq: 3

http:
  method: POST
  url: "{{elixFormsApiUrl}}/authentication/jwt"
  headers:
    - name: Content-Type
      value: application/json
    - name: x-requested-with
      value: XMLHttpRequest
  body:
    type: json
    data: |-
      {
        "iss": "servizio-cittadino-attivo",
        "sub": "mariorossi",
        "info": {
          "https://www.elixforms.it/name": "Mario",
          "https://www.elixforms.it/surname": "Rossi",
          "https://www.elixforms.it/email": "mario.rossi@example.org",
          "https://www.elixforms.it/fiscal_code": "XXX",
          "https://www.elixforms.it/login_date": "2023-08-09T11:31:30Z[UTC]",
          "https://www.elixforms.it/login_receipt": "SPIDlogin 0101001029"
        }
      }
  auth:
    type: apikey
    key: x-api-key
    value: "{{elixFormsApiAuthToken}}"
    placement: header

settings:
  encodeUrl: true
  timeout: 0
  followRedirects: true
  maxRedirects: 5
  forwardAuthorizationHeader: true
