Skip to content

Commit

Permalink
Modificato valore default nome header autenticazione api-key.
Browse files Browse the repository at this point in the history
  • Loading branch information
pintorig committed Nov 14, 2023
1 parent 93d6efa commit 752e104
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Scenario: Acquisizione del profilo autenticato apikey

Given url backofficeBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A
When method get
Then status 200
Expand Down Expand Up @@ -121,7 +121,7 @@ Scenario: Acquisizione del profilo autenticato apikey non autorizzato

Given url backofficeBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A2
When method get
Then status 401
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Scenario: Acquisizione del profilo autenticato apikey

Given url pagamentiBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A
When method get
Then status 404
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Scenario: Acquisizione del profilo autenticato apikey

Given url pagamentiBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A
When method get
Then status 200
Expand Down Expand Up @@ -133,7 +133,7 @@ Scenario: Acquisizione del profilo autenticato apikey non autorizzato

Given url pagamentiBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A2
When method get
Then status 401
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Scenario: Acquisizione del profilo autenticato apikey

Given url pagamentiBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A
When method get
Then status 200
Expand Down Expand Up @@ -133,7 +133,7 @@ Scenario: Acquisizione del profilo autenticato apikey non autorizzato

Given url pagamentiBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A2
When method get
Then status 401
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Scenario: Acquisizione del profilo autenticato apikey

Given url pagamentiBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A
When method get
Then status 404
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Scenario: Acquisizione del profilo autenticato apikey

Given url pagamentiBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A
When method get
Then status 200
Expand Down Expand Up @@ -67,7 +67,7 @@ Scenario: Acquisizione del profilo autenticato apikey non autorizzato

Given url pagamentiBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A2
When method get
Then status 401
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Scenario: Acquisizione del profilo autenticato apikey

Given url pagamentiBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A
When method get
Then status 404
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Scenario: Acquisizione del profilo autenticato apikey

Given url pagamentiBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A
When method get
Then status 200
Expand Down Expand Up @@ -67,7 +67,7 @@ Scenario: Acquisizione del profilo autenticato apikey non autorizzato

Given url pagamentiBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A2
When method get
Then status 401
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Scenario: Acquisizione del profilo autenticato apikey

Given url pagamentiBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A
When method get
Then status 200
Expand All @@ -63,11 +63,11 @@ And match each response.domini ==

Scenario: Acquisizione del profilo autenticato apikey non autorizzato

* def pagamentiBaseurl = getGovPayApiBaseUrl({api: 'pagamento', versione: 'v3', autenticazione: 'apikey'})
* def pagamentiBaseurl = getGovPayApiBaseUrl({api: 'ragioneria', versione: 'v3', autenticazione: 'apikey'})

Given url pagamentiBaseurl
And path '/profilo'
And header X-API-ID = idA2A
And header X-APP-ID = idA2A
And header X-API-KEY = pwdA2A2
When method get
Then status 401
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ it.govpay.autenticazioneSSLHeader.translateTabNewLine=false

# Configurazione dell'autenticazione API-KEY
# Nome Header da dove leggere API-ID
it.govpay.autenticazioneApiKey.apiId.header.name=X-API-ID
it.govpay.autenticazioneApiKey.apiId.header.name=X-APP-ID
# Nome Header da dove leggere API_KEY
it.govpay.autenticazioneApiKey.apiKey.header.name=X-API-KEY

Expand Down Expand Up @@ -258,7 +258,7 @@ it.govpay.client.pagopa.autenticazione.subscriptionkey.header.name=Ocp-Apim-Subs

# Configurazione dell'autenticazione API-KEY
# Nome Header dove impostare API-ID
it.govpay.client.autenticazioneApiKey.apiId.header.name=X-API-ID
it.govpay.client.autenticazioneApiKey.apiId.header.name=X-APP-ID
# Nome Header dove impostare API_KEY
it.govpay.client.autenticazioneApiKey.apiKey.header.name=X-API-KEY

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/filters/template.filter.properties
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ it.govpay.autenticazioneSSLHeader.translateTabNewLine=false

# Configurazione dell'autenticazione API-KEY
# Nome Header da dove leggere API-ID
it.govpay.autenticazioneApiKey.apiId.header.name=X-API-ID
it.govpay.autenticazioneApiKey.apiId.header.name=X-APP-ID
# Nome Header da dove leggere API_KEY
it.govpay.autenticazioneApiKey.apiKey.header.name=X-API-KEY

Expand Down Expand Up @@ -258,7 +258,7 @@ it.govpay.client.pagopa.autenticazione.subscriptionkey.header.name=Ocp-Apim-Subs

# Configurazione dell'autenticazione API-KEY
# Nome Header dove impostare API-ID
it.govpay.client.autenticazioneApiKey.apiId.header.name=X-API-ID
it.govpay.client.autenticazioneApiKey.apiId.header.name=X-APP-ID
# Nome Header dove impostare API_KEY
it.govpay.client.autenticazioneApiKey.apiKey.header.name=X-API-KEY

Expand Down

0 comments on commit 752e104

Please sign in to comment.