-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
174 additions
and
0 deletions.
There are no files selected for viewing
174 changes: 174 additions & 0 deletions
174
pkg/token/testdata/ServicePrincipalPoPTokenFromSecretVCR.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
--- | ||
version: 2 | ||
interactions: | ||
- id: 0 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
content_length: 0 | ||
transfer_encoding: [] | ||
trailer: {} | ||
host: login.microsoftonline.com | ||
remote_addr: "" | ||
request_uri: "" | ||
body: "" | ||
form: {} | ||
headers: | ||
User-Agent: | ||
- microsoft-authentication-library-for-go/v1.1.1-0.20230811173331-99e839c4c840 (go1.19.6; linux) | ||
url: https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2FAZURE_TENANT_ID%2Foauth2%2Fv2.0%2Fauthorize | ||
method: GET | ||
response: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
transfer_encoding: [] | ||
trailer: {} | ||
content_length: 980 | ||
uncompressed: false | ||
body: '{"tenant_discovery_endpoint":"https://login.microsoftonline.com/AZURE_TENANT_ID/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}' | ||
headers: | ||
Access-Control-Allow-Methods: | ||
- GET, OPTIONS | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Cache-Control: | ||
- max-age=86400, private | ||
Content-Length: | ||
- "980" | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Date: | ||
- Fri, 02 Jun 2023 22:18:28 GMT | ||
P3p: | ||
- CP="DSP CUR OTPi IND OTRi ONL FIN" | ||
Strict-Transport-Security: | ||
- max-age=31536000; includeSubDomains | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Ms-Ests-Server: | ||
- 2.1.15427.11 - NCUS ProdSlices | ||
X-Xss-Protection: | ||
- "0" | ||
status: 200 OK | ||
code: 200 | ||
duration: 27.748362ms | ||
- id: 1 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
content_length: 0 | ||
transfer_encoding: [] | ||
trailer: {} | ||
host: login.microsoftonline.com | ||
remote_addr: "" | ||
request_uri: "" | ||
body: "" | ||
form: {} | ||
headers: | ||
User-Agent: | ||
- microsoft-authentication-library-for-go/v1.1.1-0.20230811173331-99e839c4c840 (go1.19.6; linux) | ||
url: https://login.microsoftonline.com/AZURE_TENANT_ID/v2.0/.well-known/openid-configuration | ||
method: GET | ||
response: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
transfer_encoding: [] | ||
trailer: {} | ||
content_length: 1753 | ||
uncompressed: false | ||
body: '{"token_endpoint":"https://login.microsoftonline.com/AZURE_TENANT_ID/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/AZURE_TENANT_ID/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/AZURE_TENANT_ID/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/AZURE_TENANT_ID/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/AZURE_TENANT_ID/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/AZURE_TENANT_ID/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/AZURE_TENANT_ID/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}' | ||
headers: | ||
Access-Control-Allow-Methods: | ||
- GET, OPTIONS | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Cache-Control: | ||
- max-age=86400, private | ||
Content-Length: | ||
- "1753" | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Date: | ||
- Fri, 02 Jun 2023 22:18:28 GMT | ||
P3p: | ||
- CP="DSP CUR OTPi IND OTRi ONL FIN" | ||
Strict-Transport-Security: | ||
- max-age=31536000; includeSubDomains | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Ms-Ests-Server: | ||
- 2.1.15482.15 - SCUS ProdSlices | ||
X-Xss-Protection: | ||
- "0" | ||
status: 200 OK | ||
code: 200 | ||
duration: 40.765501ms | ||
- id: 2 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
content_length: 215 | ||
transfer_encoding: [] | ||
trailer: {} | ||
host: login.microsoftonline.com | ||
remote_addr: "" | ||
request_uri: "" | ||
body: client_id=[REDACTED]&client_secret=[REDACTED]&grant_type=client_credentials&scope=[REDACTED]%2F.default+openid+offline_access+profile | ||
form: | ||
client_id: | ||
- '[REDACTED]' | ||
client_secret: | ||
- '[REDACTED]' | ||
grant_type: | ||
- client_credentials | ||
scope: | ||
- '[REDACTED]/.default openid offline_access profile' | ||
headers: | ||
Content-Length: | ||
- "215" | ||
Content-Type: | ||
- application/x-www-form-urlencoded; charset=utf-8 | ||
User-Agent: | ||
- microsoft-authentication-library-for-go/v1.1.1-0.20230811173331-99e839c4c840 (go1.19.6; linux) | ||
url: https://login.microsoftonline.com/AZURE_TENANT_ID/oauth2/v2.0/token | ||
method: POST | ||
response: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
transfer_encoding: [] | ||
trailer: {} | ||
content_length: 1359 | ||
uncompressed: false | ||
body: '{"token_type":"pop","expires_in":86399,"ext_expires_in":86399,"access_token":"TEST_ACCESS_TOKEN"}' | ||
headers: | ||
Cache-Control: | ||
- no-store, no-cache | ||
Content-Length: | ||
- "1359" | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Date: | ||
- Fri, 02 Jun 2023 22:18:28 GMT | ||
Expires: | ||
- "-1" | ||
P3p: | ||
- CP="DSP CUR OTPi IND OTRi ONL FIN" | ||
Pragma: | ||
- no-cache | ||
Strict-Transport-Security: | ||
- max-age=31536000; includeSubDomains | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Ms-Ests-Server: | ||
- 2.1.15482.15 - SCUS ProdSlices | ||
X-Xss-Protection: | ||
- "0" | ||
status: 200 OK | ||
code: 200 | ||
duration: 104.210059ms |