50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
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: "{\r
|
|
|
|
\ \"iss\": \"servizio-cittadino-attivo\",\r
|
|
|
|
\ \"sub\": \"mariorossi\",\r
|
|
|
|
\ \"info\": {\r
|
|
|
|
\ \"https://www.elixforms.it/name\": \"Mario\",\r
|
|
|
|
\ \"https://www.elixforms.it/surname\": \"Rossi\",\r
|
|
|
|
\ \"https://www.elixforms.it/email\": \"mario.rossi@example.org\",\r
|
|
|
|
\ \"https://www.elixforms.it/fiscal_code\": \"XXX\",\r
|
|
|
|
\ \"https://www.elixforms.it/login_date\": \"2023-08-09T11:31:30Z[UTC]\",\r
|
|
|
|
\ \"https://www.elixforms.it/login_receipt\": \"SPIDlogin 0101001029\"\r
|
|
|
|
\ }\r
|
|
|
|
}"
|
|
auth:
|
|
type: apikey
|
|
key: x-api-key
|
|
value: "{{elixFormsApiAuthToken}}"
|
|
placement: header
|
|
|
|
settings:
|
|
encodeUrl: true
|
|
timeout: 0
|
|
followRedirects: true
|
|
maxRedirects: 5
|