Last active
July 24, 2022 02:12
-
-
Save liyangau/e092e65b4c2da5966e9d38d09a869c40 to your computer and use it in GitHub Desktop.
Insomnia collections for Okta auth flows
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
{ | |
"_type": "export", | |
"__export_format": 4, | |
"__export_date": "2022-07-24T02:11:47.358Z", | |
"__export_source": "insomnia.desktop.app:v2022.4.2", | |
"resources": [ | |
{ | |
"_id": "req_edf1b5534c004ccba9b3d32bd751bcd1", | |
"parentId": "wrk_4d8c8b388cf54393b3c5ee4325ed6d8c", | |
"modified": 1658157025689, | |
"created": 1658148626099, | |
"url": "", | |
"name": "authorization_code", | |
"description": "", | |
"method": "GET", | |
"body": {}, | |
"parameters": [], | |
"headers": [], | |
"authentication": { | |
"type": "oauth2", | |
"grantType": "authorization_code", | |
"authorizationUrl": "{{ _.issuer }}/v1/authorize", | |
"accessTokenUrl": "{{ _.issuer }}/v1/token", | |
"clientId": "{{ _.client_id }}", | |
"clientSecret": "{{ _.client_secret }}", | |
"usePkce": true, | |
"redirectUrl": "http://localhost/callback", | |
"state": "{% uuid 'v4' %}", | |
"scope": "openid offline_access" | |
}, | |
"metaSortKey": -1658148626099, | |
"isPrivate": false, | |
"settingStoreCookies": true, | |
"settingSendCookies": true, | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingRebuildPath": true, | |
"settingFollowRedirects": "global", | |
"_type": "request" | |
}, | |
{ | |
"_id": "wrk_4d8c8b388cf54393b3c5ee4325ed6d8c", | |
"parentId": null, | |
"modified": 1658148600229, | |
"created": 1658148600229, | |
"name": "Okta", | |
"description": "", | |
"scope": "collection", | |
"_type": "workspace" | |
}, | |
{ | |
"_id": "req_97e29a6717da4c85b17e3970d9a7280d", | |
"parentId": "wrk_4d8c8b388cf54393b3c5ee4325ed6d8c", | |
"modified": 1658628687708, | |
"created": 1658148659232, | |
"url": "{{ _.issuer }}/v1/token ", | |
"name": "password", | |
"description": "", | |
"method": "POST", | |
"body": { | |
"mimeType": "application/x-www-form-urlencoded", | |
"params": [ | |
{ | |
"name": "grant_type", | |
"value": "password", | |
"id": "pair_e273c8d0713c45c89625108337c2e814" | |
}, | |
{ | |
"name": "username", | |
"value": "", | |
"id": "pair_a393dbf24832466e9a95c764e28edc7f" | |
}, | |
{ | |
"name": "password", | |
"value": "", | |
"id": "pair_3e41b7c24f3140dca8de363b12e2625f" | |
}, | |
{ | |
"name": "scope", | |
"value": "openid email profile offline_access", | |
"id": "pair_cc556d86a4684c7cbf2cb821cbe17d8b" | |
} | |
] | |
}, | |
"parameters": [], | |
"headers": [ | |
{ | |
"name": "Content-Type", | |
"value": "application/x-www-form-urlencoded", | |
"id": "pair_c1bddb10dd0f4dfc93f1e9113420d412" | |
} | |
], | |
"authentication": { | |
"type": "basic", | |
"useISO88591": false, | |
"disabled": false, | |
"username": "{{ _.client_id }}", | |
"password": "{{ _.client_secret }}" | |
}, | |
"metaSortKey": -1656205584067.5, | |
"isPrivate": false, | |
"settingStoreCookies": true, | |
"settingSendCookies": true, | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingRebuildPath": true, | |
"settingFollowRedirects": "global", | |
"_type": "request" | |
}, | |
{ | |
"_id": "req_2be79c8fdc594fb5abb56f7da3fce04a", | |
"parentId": "wrk_4d8c8b388cf54393b3c5ee4325ed6d8c", | |
"modified": 1658628689777, | |
"created": 1658148810302, | |
"url": "{{ _.issuer }}/v1/token", | |
"name": "refresh_token", | |
"description": "", | |
"method": "POST", | |
"body": { | |
"mimeType": "application/x-www-form-urlencoded", | |
"params": [ | |
{ | |
"name": "grant_type", | |
"value": "refresh_token", | |
"id": "pair_01700f73e4d04c38a8a9aa9fe64857e2" | |
}, | |
{ | |
"name": "refresh_token", | |
"value": "{% response 'body', 'req_97e29a6717da4c85b17e3970d9a7280d', 'b64::JC5yZWZyZXNoX3Rva2Vu::46b', 'always', 60 %}", | |
"id": "pair_e864569b70ba4218ab503c1100f9b173" | |
}, | |
{ | |
"name": "scope", | |
"value": "openid email profile offline_access", | |
"id": "pair_3670271f54054b82a7013f0e916fe5d0" | |
} | |
] | |
}, | |
"parameters": [], | |
"headers": [ | |
{ | |
"name": "Content-Type", | |
"value": "application/x-www-form-urlencoded", | |
"id": "pair_2d5a2a1aa93d48adbca534d0e5c3336c" | |
} | |
], | |
"authentication": { | |
"type": "basic", | |
"useISO88591": false, | |
"disabled": false, | |
"username": "{{ _.client_id }}", | |
"password": "{{ _.client_secret }}" | |
}, | |
"metaSortKey": -1654748302543.875, | |
"isPrivate": false, | |
"settingStoreCookies": true, | |
"settingSendCookies": true, | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingRebuildPath": true, | |
"settingFollowRedirects": "global", | |
"_type": "request" | |
}, | |
{ | |
"_id": "req_f8f407963b0c461ca55a63e4496a947f", | |
"parentId": "wrk_4d8c8b388cf54393b3c5ee4325ed6d8c", | |
"modified": 1658628691537, | |
"created": 1658148815170, | |
"url": "{{ _.issuer }}/v1/introspect", | |
"name": "introspection", | |
"description": "", | |
"method": "POST", | |
"body": { | |
"mimeType": "application/x-www-form-urlencoded", | |
"params": [ | |
{ | |
"name": "grant_type", | |
"value": "introspect", | |
"id": "pair_24c1ed0560dd4a88896f245e4aa1c138" | |
}, | |
{ | |
"name": "token", | |
"value": "{% response 'body', 'req_97e29a6717da4c85b17e3970d9a7280d', 'b64::JC5pZF90b2tlbg==::46b', 'always', 60 %}", | |
"id": "pair_01143b69fc0b4389b19dc4e7986a6d70" | |
} | |
] | |
}, | |
"parameters": [], | |
"headers": [ | |
{ | |
"name": "Content-Type", | |
"value": "application/x-www-form-urlencoded", | |
"id": "pair_ee5a6ea1026b4b62a9d800dff1e2aca0" | |
} | |
], | |
"authentication": { | |
"type": "basic", | |
"useISO88591": false, | |
"disabled": false, | |
"username": "{{ _.client_id }}", | |
"password": "{{ _.client_secret }}" | |
}, | |
"metaSortKey": -1654505422289.9375, | |
"isPrivate": false, | |
"settingStoreCookies": false, | |
"settingSendCookies": false, | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingRebuildPath": true, | |
"settingFollowRedirects": "global", | |
"_type": "request" | |
}, | |
{ | |
"_id": "req_2ad5ad36390549009fc8316c0f4396ee", | |
"parentId": "wrk_4d8c8b388cf54393b3c5ee4325ed6d8c", | |
"modified": 1658628692329, | |
"created": 1658148848795, | |
"url": "{{ _.issuer }}/v1/revoke", | |
"name": "revoke_token", | |
"description": "", | |
"method": "POST", | |
"body": { | |
"mimeType": "application/x-www-form-urlencoded", | |
"params": [ | |
{ | |
"name": "token", | |
"value": "", | |
"id": "pair_47c7ae4ce1d147289c7eaf43365fb913" | |
}, | |
{ | |
"id": "pair_29484a6a512f483fb57151ba2f57175d", | |
"name": "token_type_hint", | |
"value": "", | |
"description": "" | |
} | |
] | |
}, | |
"parameters": [], | |
"headers": [ | |
{ | |
"name": "Content-Type", | |
"value": "application/x-www-form-urlencoded", | |
"id": "pair_eb45b8018fab4011b9fe0fe7e679a506" | |
} | |
], | |
"authentication": { | |
"type": "basic", | |
"useISO88591": false, | |
"disabled": false, | |
"username": "{{ _.client_id }}", | |
"password": "{{ _.client_secret }}" | |
}, | |
"metaSortKey": -1654383982162.9688, | |
"isPrivate": false, | |
"settingStoreCookies": true, | |
"settingSendCookies": true, | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingRebuildPath": true, | |
"settingFollowRedirects": "global", | |
"_type": "request" | |
}, | |
{ | |
"_id": "req_25ead9e78b37464cbc29a100a7820eaa", | |
"parentId": "wrk_4d8c8b388cf54393b3c5ee4325ed6d8c", | |
"modified": 1658628692893, | |
"created": 1658148871837, | |
"url": "{{ _.issuer }}/v1/userinfo", | |
"name": "userinfo", | |
"description": "", | |
"method": "GET", | |
"body": {}, | |
"parameters": [], | |
"headers": [], | |
"authentication": { | |
"type": "bearer", | |
"token": "{% response 'body', 'req_97e29a6717da4c85b17e3970d9a7280d', 'b64::JC5hY2Nlc3NfdG9rZW4=::46b', 'always', 60 %}" | |
}, | |
"metaSortKey": -1654323262099.4844, | |
"isPrivate": false, | |
"settingStoreCookies": true, | |
"settingSendCookies": true, | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingRebuildPath": true, | |
"settingFollowRedirects": "global", | |
"_type": "request" | |
}, | |
{ | |
"_id": "req_6a94030141f647f6b88cf7ce0ae313d0", | |
"parentId": "wrk_4d8c8b388cf54393b3c5ee4325ed6d8c", | |
"modified": 1658628693469, | |
"created": 1658148804136, | |
"url": "{{ _.issuer }}/v1/token", | |
"name": "client_credential", | |
"description": "", | |
"method": "POST", | |
"body": { | |
"mimeType": "application/x-www-form-urlencoded", | |
"params": [ | |
{ | |
"name": "grant_type", | |
"value": "client_credentials", | |
"id": "pair_b0c6dd34fdbb4b99af58dfc8aaea6237" | |
} | |
] | |
}, | |
"parameters": [], | |
"headers": [ | |
{ | |
"name": "Content-Type", | |
"value": "application/x-www-form-urlencoded", | |
"id": "pair_bd0b633fe97d48ab8f83fb58d5369bb3" | |
} | |
], | |
"authentication": { | |
"type": "basic", | |
"useISO88591": false, | |
"disabled": false, | |
"username": "{{ _.client_id }}", | |
"password": "{{ _.client_secret }}" | |
}, | |
"metaSortKey": -1654323262049.4844, | |
"isPrivate": false, | |
"settingStoreCookies": true, | |
"settingSendCookies": true, | |
"settingDisableRenderRequestBody": false, | |
"settingEncodeUrl": true, | |
"settingRebuildPath": true, | |
"settingFollowRedirects": "global", | |
"_type": "request" | |
}, | |
{ | |
"_id": "env_038d3942d77445791ef5b2a2eb20e3ab8b465dc0", | |
"parentId": "wrk_4d8c8b388cf54393b3c5ee4325ed6d8c", | |
"modified": 1658157408852, | |
"created": 1658148600265, | |
"name": "Base Environment", | |
"data": { | |
"issuer": "", | |
"client_id": "", | |
"client_secret": "" | |
}, | |
"dataPropertyOrder": { | |
"&": [ | |
"issuer", | |
"client_id", | |
"client_secret" | |
] | |
}, | |
"color": null, | |
"isPrivate": false, | |
"metaSortKey": 1658148600265, | |
"_type": "environment" | |
}, | |
{ | |
"_id": "jar_038d3942d77445791ef5b2a2eb20e3ab8b465dc0", | |
"parentId": "wrk_4d8c8b388cf54393b3c5ee4325ed6d8c", | |
"modified": 1658149568818, | |
"created": 1658148600266, | |
"name": "Default Jar", | |
"cookies": [ | |
{ | |
"key": "sid", | |
"value": "\"\"", | |
"expires": "1970-01-01T00:00:10.000Z", | |
"domain": "dev-47949652.okta.com", | |
"path": "/", | |
"hostOnly": true, | |
"creation": "2022-07-18T13:03:20.916Z", | |
"lastAccessed": "2022-07-18T13:06:08.818Z", | |
"id": "4464180010454457" | |
}, | |
{ | |
"key": "autolaunch_triggered", | |
"value": "\"\"", | |
"expires": "1970-01-01T00:00:10.000Z", | |
"domain": "dev-47949652.okta.com", | |
"path": "/", | |
"hostOnly": true, | |
"creation": "2022-07-18T13:03:20.916Z", | |
"lastAccessed": "2022-07-18T13:06:08.818Z", | |
"id": "8319687824187518" | |
}, | |
{ | |
"key": "JSESSIONID", | |
"value": "F2ABCFB1F1F8EE6CF3A5B4425B455747", | |
"domain": "dev-47949652.okta.com", | |
"path": "/", | |
"secure": true, | |
"httpOnly": true, | |
"hostOnly": true, | |
"creation": "2022-07-18T13:03:20.916Z", | |
"lastAccessed": "2022-07-18T13:06:08.818Z", | |
"id": "9228350271244863" | |
} | |
], | |
"_type": "cookie_jar" | |
}, | |
{ | |
"_id": "spc_ec7cca3ff0fd44dd83373f2cebddf22d", | |
"parentId": "wrk_4d8c8b388cf54393b3c5ee4325ed6d8c", | |
"modified": 1658148600249, | |
"created": 1658148600249, | |
"fileName": "Okta", | |
"contents": "", | |
"contentType": "yaml", | |
"_type": "api_spec" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment