| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- ---
- version: 2
- interactions:
- - id: 0
- request:
- proto: HTTP/1.1
- proto_major: 1
- proto_minor: 1
- content_length: 23
- host: localhost:8200
- body: '{"password":"bob4ever"}'
- headers:
- X-Vault-Request:
- - "true"
- url: http://localhost:8200/v1/auth/customuserpasspath/login/alice
- method: PUT
- response:
- proto: HTTP/1.1
- proto_major: 1
- proto_minor: 1
- content_length: 511
- body: |-
- {
- "auth": {
- "accessor": "AbCdEfGHiJk123",
- "client_token": "s.fakeTOKEN123",
- "entity_id": "00000000-0000-0000-0000-000000000000",
- "lease_duration": 2764800,
- "metadata": {
- "username": "alice"
- },
- "mfa_requirement": null,
- "num_uses": 0,
- "orphan": true,
- "policies": [
- "default",
- "read-kv"
- ],
- "renewable": true,
- "token_policies": [
- "default",
- "read-kv"
- ],
- "token_type": "service"
- },
- "data": null,
- "lease_duration": 0,
- "lease_id": "",
- "renewable": false,
- "request_id": "00000000-0000-0000-0000-000000000000",
- "warnings": null,
- "wrap_info": null
- }
- headers:
- Cache-Control:
- - no-store
- Content-Length:
- - "511"
- Content-Type:
- - application/json
- Strict-Transport-Security:
- - max-age=31536000; includeSubDomains
- status: 200 OK
- code: 200
- duration: 0s
- - id: 1
- request:
- proto: HTTP/1.1
- proto_major: 1
- proto_minor: 1
- content_length: 0
- host: localhost:8200
- headers:
- X-Vault-Request:
- - "true"
- X-Vault-Token:
- - s.fakeTOKEN123
- url: http://localhost:8200/v1/secret/data/foo
- method: GET
- response:
- proto: HTTP/1.1
- proto_major: 1
- proto_minor: 1
- content_length: 330
- body: |-
- {
- "auth": null,
- "data": {
- "data": {
- "bar": "bazz",
- "lorem": "ipsum"
- },
- "metadata": {
- "created_time": "2099-09-09T09:09:09.09Z",
- "custom_metadata": null,
- "deletion_time": "",
- "destroyed": false,
- "version": 2
- }
- },
- "lease_duration": 0,
- "lease_id": "",
- "renewable": false,
- "request_id": "00000000-0000-0000-0000-000000000000",
- "warnings": null,
- "wrap_info": null
- }
- headers:
- Cache-Control:
- - no-store
- Content-Length:
- - "330"
- Content-Type:
- - application/json
- Strict-Transport-Security:
- - max-age=31536000; includeSubDomains
- status: 200 OK
- code: 200
- duration: 0s
|