Closed evansims closed 1 year ago
Patch coverage: 100.00
% and no project coverage change.
Comparison is base (
0ccecdf
) 100.00% compared to head (2ee277e
) 100.00%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Thanks for the review @Widcket, I've pushed some changes based on your feedback
Description
This PR adds support for Pushed Authorization Requests (PAR).
Auth0\SDK\Configuration\SdkConfiguration
changes:pushAuthorizationRequest
(bool
type; defaults tofalse
) toggles PAR use.Auth0\SDK\API\Authentication\PushedAuthorizationRequest
has been added, with two methods:post()
builds and sends a PAR request —POST /oauth/par
.create()
callspost()
to send a PAR request, and then builds and returns a/authorize
link for the new PAR request.Auth0\SDK\API\Authentication
changes:pushedAuthorizationRequest()
convenience method has been added, returning an instance ofAuth0\SDK\API\Authentication\PushedAuthorizationRequest
.Auth0\SDK\Auth0
changes:login()
has been updated to support PAR.Auth0\SDK\Exception\Authentication\ParResponseException
added:Testing and Documentation changes:
examples/features/authentication/pushed-authorization-request
has been added to demonstrate the feature.Example usage: