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.
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 therequest_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.