You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/auth0/client/auth/AuthAPI.java
+46Lines changed: 46 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -238,6 +238,25 @@ public String authorizeUrlWithPAR(String requestUri) {
238
238
.toString();
239
239
}
240
240
241
+
/**
242
+
* Builds an authorization URL for JWT-Secured Authorization Request (JAR)
243
+
* @param request the {@code request} parameter value. As specified, it must be a signed JWT and contain claims representing the authorization parameters.
* @return the authorization URL to redirect users to for authentication.
248
+
*/
249
+
publicStringauthorizeUrlWithJAR(Stringrequest) {
250
+
Asserts.assertNotNull(request, "request");
251
+
returnbaseUrl
252
+
.newBuilder()
253
+
.addPathSegment("authorize")
254
+
.addQueryParameter("client_id", clientId)
255
+
.addQueryParameter("request", request)
256
+
.build()
257
+
.toString();
258
+
}
259
+
241
260
/**
242
261
* Builds a request to make a Pushed Authorization Request (PAR) to receive a {@code request_uri} to send to the {@code /authorize} endpoint.
243
262
* @param redirectUri the URL to redirect to after authorization has been granted by the user. Your Auth0 application
@@ -270,6 +289,33 @@ public Request<PushedAuthorizationResponse> pushedAuthorizationRequest(String re
270
289
returnrequest;
271
290
}
272
291
292
+
/**
293
+
* Builds a request to make a Pushed Authorization Request (PAR) with JWT-Secured Authorization Requests (JAR), to receive a {@code request_uri} to send to the {@code /authorize} endpoint.
294
+
* @param request The signed JWT containing the authorization parameters as claims.
295
+
* @see <a href="https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow/authorization-code-flow-with-par-and-jar">Authorization Code Flow with PAR and JAR</a>
0 commit comments