auth0 / auth0-java

Java client library for the Auth0 platform
https://auth0.com
MIT License
286 stars 131 forks source link

[SDK-4143] add support for Pushed Authorization Requests #531

Closed jimmyjames closed 1 year ago

jimmyjames commented 1 year ago

Changes

This PR adds two new methods to the AuthAPI to support Pushed Authorization Requests:

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.