mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
5af79c7486
* Move basic auth routes to a separate file * Stop slowing requests down artificially * Add initial oauth routes * Mount oidc routes under /oidc * Enable all forms of oauth that Insomnia supports * Add oauth request collection fixture * Update playwright config * Use 127.0.0.1 instead of localhost * simple oauth2 test * Make the playwright extension work * Move oauth tests to a separate file * Test all oauth flows * Mark test as slow * Wait for load state for new pages * Use locators consistently * Add playwright to recommended extensions * Add instructions for how to use the playwright extension * update selectors and use fill * Fix markdown lint Co-authored-by: jackkav <jackkav@gmail.com> Co-authored-by: gatzjames <jamesgatzos@gmail.com>
326 lines
9.6 KiB
YAML
326 lines
9.6 KiB
YAML
_type: export
|
|
__export_format: 4
|
|
__export_date: 2022-02-24T01:02:16.537Z
|
|
__export_source: insomnia.desktop.app:v2022.1.0-beta.0
|
|
resources:
|
|
- _id: req_54f2824040c847ebaf3ed6d080111b4e
|
|
parentId: fld_0e50ba4426bb4540ade91e0525ea1f29
|
|
modified: 1645664215605
|
|
created: 1645544268127
|
|
url: "{{ _.oidc_base_path }}/me"
|
|
name: No PKCE
|
|
description: ""
|
|
method: GET
|
|
body: {}
|
|
parameters: []
|
|
headers: []
|
|
authentication:
|
|
accessTokenUrl: "{{ _.oidc_base_path }}/token"
|
|
authorizationUrl: "{{ _.oidc_base_path }}/auth"
|
|
clientId: "{{ _.client_id_authorization_code }}"
|
|
clientSecret: "{{ _.client_secret }}"
|
|
disabled: false
|
|
grantType: authorization_code
|
|
redirectUrl: "{{ _.oidc_callback }}"
|
|
responseType: id_token
|
|
scope: openid offline_access
|
|
state: ""
|
|
type: oauth2
|
|
usePkce: false
|
|
credentialsInBody: "false"
|
|
tokenPrefix: ""
|
|
metaSortKey: -1000000237.5
|
|
isPrivate: false
|
|
settingStoreCookies: true
|
|
settingSendCookies: true
|
|
settingDisableRenderRequestBody: false
|
|
settingEncodeUrl: true
|
|
settingRebuildPath: true
|
|
settingFollowRedirects: global
|
|
_type: request
|
|
- _id: fld_0e50ba4426bb4540ade91e0525ea1f29
|
|
parentId: wrk_392055e2aa29457b9d2904396cd7631f
|
|
modified: 1645545086145
|
|
created: 1645545086145
|
|
name: Authorization Code
|
|
description: ""
|
|
environment: {}
|
|
environmentPropertyOrder: null
|
|
metaSortKey: -1645545086145
|
|
_type: request_group
|
|
- _id: wrk_392055e2aa29457b9d2904396cd7631f
|
|
parentId: null
|
|
modified: 1645220798234
|
|
created: 1645220798234
|
|
name: OAuth Testing
|
|
description: ""
|
|
scope: collection
|
|
_type: workspace
|
|
- _id: req_b728f4cbb8694a0d96ecf4753f621964
|
|
parentId: fld_0e50ba4426bb4540ade91e0525ea1f29
|
|
modified: 1645664217727
|
|
created: 1645220819802
|
|
url: "{{ _.oidc_base_path }}/me"
|
|
name: PKCE SHA256
|
|
description: ""
|
|
method: GET
|
|
body: {}
|
|
parameters: []
|
|
headers: []
|
|
authentication:
|
|
accessTokenUrl: "{{ _.oidc_base_path }}/token"
|
|
authorizationUrl: "{{ _.oidc_base_path }}/auth"
|
|
clientId: "{{ _.client_id_authorization_code_pkce }}"
|
|
clientSecret: "{{ _.client_secret }}"
|
|
disabled: false
|
|
grantType: authorization_code
|
|
redirectUrl: "{{ _.oidc_callback }}"
|
|
responseType: id_token
|
|
scope: openid offline_access
|
|
state: ""
|
|
type: oauth2
|
|
usePkce: true
|
|
metaSortKey: -1000000187.5
|
|
isPrivate: false
|
|
settingStoreCookies: true
|
|
settingSendCookies: true
|
|
settingDisableRenderRequestBody: false
|
|
settingEncodeUrl: true
|
|
settingRebuildPath: true
|
|
settingFollowRedirects: global
|
|
_type: request
|
|
- _id: req_fe74f7e6d028450ca347e3c07cf79c75
|
|
parentId: fld_0e50ba4426bb4540ade91e0525ea1f29
|
|
modified: 1645664218264
|
|
created: 1645543526615
|
|
url: "{{ _.oidc_base_path }}/me"
|
|
name: PKCE Plain
|
|
description: ""
|
|
method: GET
|
|
body: {}
|
|
parameters: []
|
|
headers: []
|
|
authentication:
|
|
accessTokenUrl: "{{ _.oidc_base_path }}/token"
|
|
authorizationUrl: "{{ _.oidc_base_path }}/auth"
|
|
clientId: "{{ _.client_id_authorization_code_pkce }}"
|
|
clientSecret: "{{ _.client_secret }}"
|
|
disabled: false
|
|
grantType: authorization_code
|
|
redirectUrl: "{{ _.oidc_callback }}"
|
|
responseType: id_token
|
|
scope: openid offline_access
|
|
state: ""
|
|
type: oauth2
|
|
usePkce: true
|
|
pkceMethod: plain
|
|
credentialsInBody: "false"
|
|
metaSortKey: -1000000137.5
|
|
isPrivate: false
|
|
settingStoreCookies: true
|
|
settingSendCookies: true
|
|
settingDisableRenderRequestBody: false
|
|
settingEncodeUrl: true
|
|
settingRebuildPath: true
|
|
settingFollowRedirects: global
|
|
_type: request
|
|
- _id: req_a6563c5d82e644bda38083717cf0c2c5
|
|
parentId: fld_d34790add1584643b6688c3add5bbe85
|
|
modified: 1645664218947
|
|
created: 1645545802379
|
|
url: "{{ _.oidc_base_path }}/id-token"
|
|
name: ID Token
|
|
description: ""
|
|
method: GET
|
|
body: {}
|
|
parameters: []
|
|
headers: []
|
|
authentication:
|
|
accessTokenUrl: "{{ _.oidc_base_path }}/token"
|
|
authorizationUrl: "{{ _.oidc_base_path }}/auth"
|
|
clientId: "{{ _.client_id_implicit }}"
|
|
clientSecret: "{{ _.client_secret }}"
|
|
disabled: false
|
|
grantType: implicit
|
|
redirectUrl: "{{ _.oidc_callback }}"
|
|
responseType: id_token
|
|
scope: openid
|
|
state: ""
|
|
type: oauth2
|
|
usePkce: false
|
|
credentialsInBody: "false"
|
|
tokenPrefix: ""
|
|
metaSortKey: -1000000237.5
|
|
isPrivate: false
|
|
settingStoreCookies: true
|
|
settingSendCookies: true
|
|
settingDisableRenderRequestBody: false
|
|
settingEncodeUrl: true
|
|
settingRebuildPath: true
|
|
settingFollowRedirects: global
|
|
_type: request
|
|
- _id: fld_d34790add1584643b6688c3add5bbe85
|
|
parentId: wrk_392055e2aa29457b9d2904396cd7631f
|
|
modified: 1645545802354
|
|
created: 1645545802354
|
|
name: Implicit
|
|
description: ""
|
|
environment: {}
|
|
environmentPropertyOrder: null
|
|
metaSortKey: -1644942229994
|
|
_type: request_group
|
|
- _id: req_1ba50492c71445e398f63a7f00aee9fd
|
|
parentId: fld_d34790add1584643b6688c3add5bbe85
|
|
modified: 1645664219446
|
|
created: 1645567186775
|
|
url: "{{ _.oidc_base_path }}/me"
|
|
name: ID and Access Token
|
|
description: ""
|
|
method: GET
|
|
body: {}
|
|
parameters: []
|
|
headers: []
|
|
authentication:
|
|
accessTokenUrl: "{{ _.oidc_base_path }}/token"
|
|
authorizationUrl: "{{ _.oidc_base_path }}/auth"
|
|
clientId: "{{ _.client_id_implicit }}"
|
|
clientSecret: "{{ _.client_secret }}"
|
|
disabled: false
|
|
grantType: implicit
|
|
redirectUrl: "{{ _.oidc_callback }}"
|
|
responseType: id_token token
|
|
scope: openid
|
|
state: ""
|
|
type: oauth2
|
|
usePkce: false
|
|
credentialsInBody: "false"
|
|
tokenPrefix: ""
|
|
metaSortKey: -1000000212.5
|
|
isPrivate: false
|
|
settingStoreCookies: true
|
|
settingSendCookies: true
|
|
settingDisableRenderRequestBody: false
|
|
settingEncodeUrl: true
|
|
settingRebuildPath: true
|
|
settingFollowRedirects: global
|
|
_type: request
|
|
- _id: req_2b14ff638149403bb1f5ea77a4e9427f
|
|
parentId: wrk_392055e2aa29457b9d2904396cd7631f
|
|
modified: 1645664219861
|
|
created: 1645637343873
|
|
url: "{{ _.oidc_base_path }}/client-credential"
|
|
name: Client Credentials
|
|
description: ""
|
|
method: GET
|
|
body: {}
|
|
parameters: []
|
|
headers: []
|
|
authentication:
|
|
accessTokenUrl: "{{ _.oidc_base_path }}/token"
|
|
authorizationUrl: "{{ _.oidc_base_path }}/auth"
|
|
clientId: "{{ _.client_id_client_creds }}"
|
|
clientSecret: "{{ _.client_secret }}"
|
|
disabled: false
|
|
grantType: client_credentials
|
|
redirectUrl: "{{ _.oidc_callback }}"
|
|
responseType: id_token
|
|
scope: openid
|
|
state: ""
|
|
type: oauth2
|
|
usePkce: false
|
|
credentialsInBody: "false"
|
|
tokenPrefix: ""
|
|
username: foo
|
|
password: bar
|
|
metaSortKey: -1644716158937.375
|
|
isPrivate: false
|
|
settingStoreCookies: true
|
|
settingSendCookies: true
|
|
settingDisableRenderRequestBody: false
|
|
settingEncodeUrl: true
|
|
settingRebuildPath: true
|
|
settingFollowRedirects: global
|
|
_type: request
|
|
- _id: req_cf8a55d9b4144632a5528a5147a24540
|
|
parentId: wrk_392055e2aa29457b9d2904396cd7631f
|
|
modified: 1645664220407
|
|
created: 1645636233910
|
|
url: "{{ _.oidc_base_path }}/me"
|
|
name: Resource Owner Password Credentials
|
|
description: ""
|
|
method: GET
|
|
body: {}
|
|
parameters: []
|
|
headers: []
|
|
authentication:
|
|
accessTokenUrl: "{{ _.oidc_base_path }}/token"
|
|
authorizationUrl: "{{ _.oidc_base_path }}/auth"
|
|
clientId: "{{ _.client_id_resource_owner }}"
|
|
clientSecret: "{{ _.client_secret }}"
|
|
disabled: false
|
|
grantType: password
|
|
redirectUrl: "{{ _.oidc_callback }}"
|
|
responseType: id_token
|
|
scope: openid
|
|
state: ""
|
|
type: oauth2
|
|
usePkce: false
|
|
credentialsInBody: "false"
|
|
tokenPrefix: ""
|
|
username: foo
|
|
password: bar
|
|
metaSortKey: -1644603123409.0625
|
|
isPrivate: false
|
|
settingStoreCookies: true
|
|
settingSendCookies: true
|
|
settingDisableRenderRequestBody: false
|
|
settingEncodeUrl: true
|
|
settingRebuildPath: true
|
|
settingFollowRedirects: global
|
|
_type: request
|
|
- _id: env_aaaa7f21b1f145528b6b5f4518afc3f7
|
|
parentId: wrk_392055e2aa29457b9d2904396cd7631f
|
|
modified: 1645661876119
|
|
created: 1645220798237
|
|
name: Base Environment
|
|
data:
|
|
base_url: http://127.0.0.1:4010
|
|
oidc_base_path: "{{ _.base_url }}/oidc"
|
|
oidc_callback: "{{ _.base_url }}/callback"
|
|
client_id_authorization_code: authorization_code
|
|
client_id_authorization_code_pkce: authorization_code_pkce
|
|
client_id_implicit: implicit
|
|
client_id_client_creds: client_credentials
|
|
client_id_resource_owner: resource_owner
|
|
client_secret: secret
|
|
dataPropertyOrder:
|
|
"&":
|
|
- base_url
|
|
- oidc_base_path
|
|
- oidc_callback
|
|
- client_id_authorization_code
|
|
- client_id_authorization_code_pkce
|
|
- client_id_implicit
|
|
- client_id_client_creds
|
|
- client_id_resource_owner
|
|
- client_secret
|
|
color: null
|
|
isPrivate: false
|
|
metaSortKey: 1639556944617
|
|
_type: environment
|
|
- _id: jar_b77a8c522418461e85eed9e37c9a6232
|
|
parentId: wrk_392055e2aa29457b9d2904396cd7631f
|
|
modified: 1645220798245
|
|
created: 1645220798245
|
|
name: Default Jar
|
|
cookies: []
|
|
_type: cookie_jar
|
|
- _id: spc_e72f1a13dbe9464c993b2f9c0fa0782d
|
|
parentId: wrk_392055e2aa29457b9d2904396cd7631f
|
|
modified: 1645220798327
|
|
created: 1645220798253
|
|
fileName: OAuth Testing
|
|
contents: ""
|
|
contentType: yaml
|
|
_type: api_spec
|