pkg/internal/token/fixtures/managedidentity_credential.yaml (44 lines of code) (raw):
---
version: 2
interactions:
- id: 0
request:
proto: HTTP/1.1
proto_major: 1
proto_minor: 1
content_length: 0
transfer_encoding: []
trailer: {}
host: 169.254.169.254
remote_addr: ""
request_uri: ""
body: ""
form: {}
headers:
Metadata:
- "true"
User-Agent:
- azsdk-go-azidentity/v1.8.0 (go1.22.9; linux)
url: http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&client_id=49a6a7eb-d4f9-444a-a216-7b966e31bb05&resource=6dae42f8-4368-4678-94ff-3960e28e3630
method: GET
response:
proto: HTTP/1.1
proto_major: 1
proto_minor: 1
transfer_encoding: []
trailer: {}
content_length: 2048
uncompressed: false
body: '{"access_token":"TEST_ACCESS_TOKEN","client_id":"49a6a7eb-d4f9-444a-a216-7b966e31bb05","expires_in":"86400","expires_on":"1740028277","ext_expires_in":"86399","not_before":"1739941577","resource":"6dae42f8-4368-4678-94ff-3960e28e3630","token_type":"Bearer"}'
headers:
Content-Length:
- "2048"
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 19 Feb 2025 05:11:17 GMT
Server:
- IMDS/150.870.65.1497
status: 200 OK
code: 200
duration: 144.213894ms