-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDK-4738] Add support for performing Pushed Authorization Requests (#…
…327) Co-authored-by: Rita Zerrizuela <[email protected]>
- Loading branch information
1 parent
6faf79f
commit 9fef632
Showing
5 changed files
with
264 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
44 changes: 44 additions & 0 deletions
44
...a/recordings/authentication/TestPushedAuthorizationRequest/Should_make_a_PAR_request.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,44 @@ | ||
--- | ||
version: 2 | ||
interactions: | ||
- id: 0 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
content_length: 194 | ||
transfer_encoding: [] | ||
trailer: {} | ||
host: go-auth0-dev.eu.auth0.com | ||
remote_addr: "" | ||
request_uri: "" | ||
body: client_id=test-client_id&client_secret=test-client_secret&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fcallback&response_type=code | ||
form: | ||
client_id: | ||
- test-client_id | ||
client_secret: | ||
- test-client_secret | ||
redirect_uri: | ||
- http://localhost:3000/callback | ||
response_type: | ||
- code | ||
headers: | ||
Content-Type: | ||
- application/x-www-form-urlencoded | ||
url: https://go-auth0-dev.eu.auth0.com/oauth/par | ||
method: POST | ||
response: | ||
proto: HTTP/2.0 | ||
proto_major: 2 | ||
proto_minor: 0 | ||
transfer_encoding: [] | ||
trailer: {} | ||
content_length: 132 | ||
uncompressed: false | ||
body: '{"expires_in":30,"request_uri":"urn:ietf:params:oauth:request_uri:test-value"}' | ||
headers: | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
status: 201 Created | ||
code: 201 | ||
duration: 669.090416ms |
62 changes: 62 additions & 0 deletions
62
...ecordings/authentication/TestPushedAuthorizationRequest/Should_support_all_arguments.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,62 @@ | ||
--- | ||
version: 2 | ||
interactions: | ||
- id: 0 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
content_length: 395 | ||
transfer_encoding: [] | ||
trailer: {} | ||
host: go-auth0-dev.eu.auth0.com | ||
remote_addr: "" | ||
request_uri: "" | ||
body: audience=test-audience&client_id=test-client_id&client_secret=test-client_secret&code_challenge=n4bQgYhMfWWaL-qgxVrQFaO_TxsrC4Is0V1sFbDwCgg&connection=Username-Password&invitation=invite&nonce=abc123&organization=my-org&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fcallback&response_mode=form_post&response_type=code&scope=openid+profile+email&test=value | ||
form: | ||
audience: | ||
- test-audience | ||
client_id: | ||
- test-client_id | ||
client_secret: | ||
- test-client_secret | ||
code_challenge: | ||
- n4bQgYhMfWWaL-qgxVrQFaO_TxsrC4Is0V1sFbDwCgg | ||
connection: | ||
- Username-Password | ||
invitation: | ||
- invite | ||
nonce: | ||
- abc123 | ||
organization: | ||
- my-org | ||
redirect_uri: | ||
- http://localhost:3000/callback | ||
response_mode: | ||
- form_post | ||
response_type: | ||
- code | ||
scope: | ||
- openid profile email | ||
test: | ||
- value | ||
headers: | ||
Content-Type: | ||
- application/x-www-form-urlencoded | ||
url: https://go-auth0-dev.eu.auth0.com/oauth/par | ||
method: POST | ||
response: | ||
proto: HTTP/2.0 | ||
proto_major: 2 | ||
proto_minor: 0 | ||
transfer_encoding: [] | ||
trailer: {} | ||
content_length: 132 | ||
uncompressed: false | ||
body: '{"expires_in":30,"request_uri":"urn:ietf:params:oauth:request_uri:test-value"}' | ||
headers: | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
status: 201 Created | ||
code: 201 | ||
duration: 397.494667ms |