From 62740e4c46126e7d8d523d7465b3e6a2076d3253 Mon Sep 17 00:00:00 2001 From: SevilinMa Date: Tue, 23 Jul 2024 11:04:31 +0800 Subject: [PATCH] Upgrade OAuth2TwoLegged to support the new authentication interface (/authentication/v2/token). Then, the old interface was deprecated. --- src/main/java/com/autodesk/client/auth/OAuth2TwoLegged.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/autodesk/client/auth/OAuth2TwoLegged.java b/src/main/java/com/autodesk/client/auth/OAuth2TwoLegged.java index dbcd180..188c5c2 100644 --- a/src/main/java/com/autodesk/client/auth/OAuth2TwoLegged.java +++ b/src/main/java/com/autodesk/client/auth/OAuth2TwoLegged.java @@ -151,7 +151,7 @@ public OAuth2TwoLegged(String clientId, String clientSecret, List select this.name = "oauth2_application"; this.type = "oauth2"; - this.tokenUrl = Configuration.getDefaultApiClient().getBasePath() + "/authentication/v1/authenticate"; + this.tokenUrl = Configuration.getDefaultApiClient().getBasePath() + "/authentication/v2/token"; this.scopes.add("data:read"); this.scopes.add("data:write"); this.scopes.add("data:create");