When trying from this side, I am getting a HTTP/1.1 401 Unauthorized
(which is expected):
I added the -v
to make curl verbose, and changed the ACCESS_TOKEN to "TEST-TEST"
D:\TEMP>curl -v "https://sFlowDeploymentKeys.vault.azure.net/secrets/config?api-version=2016-10-01" -H "Authorization: Bearer TEST-TEST" --http1.1
* Trying 20.192.44.113:443...
* Connected to sFlowDeploymentKeys.vault.azure.net (20.192.44.113) port 443 (#0)
* schannel: disabled automatic use of client certificate
* ALPN: offers http/1.1
* ALPN: server accepted http/1.1
> GET /secrets/config?api-version=2016-10-01 HTTP/1.1
> Host: sFlowDeploymentKeys.vault.azure.net
> User-Agent: curl/7.83.1
> Accept: */*
> Authorization: Bearer TEST-TEST
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 401 Unauthorized
< Cache-Control: no-cache
< Pragma: no-cache
< Content-Length: 111
< Content-Type: application/json; charset=utf-8
< Expires: -1
< WWW-Authenticate: Bearer authorization="https://login.windows.net/cdc5aeea-15c5-4db6-b079-fcadd2505dc2", resource="https://vault.azure.net"
< x-ms-keyvault-region: centralindia
< x-ms-request-id: 4bde9db9-64d6-4509-995a-db04bf09a8c8
< x-ms-keyvault-service-version: 1.9.736.1
< x-ms-keyvault-network-info: conn_type=Ipv4;addr=195.240.162.281;act_addr_fam=InterNetwork;
< X-Content-Type-Options: nosniff
< Strict-Transport-Security: max-age=31536000;includeSubDomains
< Date: Tue, 14 Mar 2023 17:53:39 GMT
<
{"error":{"code":"Unauthorized","message":"[BearerReadAccessTokenFailed] Error validating token: 'S2S12005'."}}* Connection #0 to host sFlowDeploymentKeys.vault.azure.net left intact