Skip to content

Support Pushed Authorize Requests (PAR)#534

Merged
jimmyjames merged 1 commit intomasterfrom
par-v2
May 6, 2023
Merged

Support Pushed Authorize Requests (PAR)#534
jimmyjames merged 1 commit intomasterfrom
par-v2

Conversation

@jimmyjames
Copy link
Copy Markdown
Contributor

Changes

Adds support for PAR by introducing two new methods on AuthAPI:

  • public Request<PushedAuthorizationResponse> pushedAuthorizationRequest(String redirectUri, String responseType, Map<String, String> params) - Builds a request to make the pushed authorization request.
  • public String authorizeUrlWithPAR(String requestUri): Given the request_uri obtained from a PAR, constructs the authorize URL.

References

Testing

In addition to the unit tests, manually tested using a tenant with PAR enabled to verify.

@jimmyjames jimmyjames requested a review from a team as a code owner May 5, 2023 03:14
Copy link
Copy Markdown
Contributor

@poovamraj poovamraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@jimmyjames jimmyjames merged commit cd96fc4 into master May 6, 2023
@jimmyjames jimmyjames deleted the par-v2 branch May 6, 2023 03:25
@jimmyjames jimmyjames mentioned this pull request May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants