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.
These methods will also be used by auth0-java-mvc-common to enable login using PAR.
This PR also includes support for setting whether an Auth0 application should require PAR (see changes to Client). Tenant-level settings are already available via the Tenant#setFlags(Map<String, Boolean> flags), so required no modification.
Testing
In addition to the unit tests, I've been using these changes to add support to mvc-common.
Changes
This PR adds two new methods to the
AuthAPI
to support Pushed Authorization Requests: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.These methods will also be used by
auth0-java-mvc-common
to enable login using PAR.This PR also includes support for setting whether an Auth0 application should require PAR (see changes to
Client
). Tenant-level settings are already available via theTenant#setFlags(Map<String, Boolean> flags)
, so required no modification.Testing
In addition to the unit tests, I've been using these changes to add support to
mvc-common
.