From 40a6e5e9cd0bf6ebc9f54cd00a30cca2bfecc0d5 Mon Sep 17 00:00:00 2001 From: tiejinjiang-git Date: Tue, 20 Jun 2023 03:07:43 +0000 Subject: [PATCH] =?UTF-8?q?update=20Account-Server-Java-Demo/src/main/java?= =?UTF-8?q?/com/huawei/apidemo/TokenAPIDemo.java.=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=8C=BF=E5=90=8D=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tiejinjiang-git --- .../src/main/java/com/huawei/apidemo/TokenAPIDemo.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Account-Server-Java-Demo/src/main/java/com/huawei/apidemo/TokenAPIDemo.java b/Account-Server-Java-Demo/src/main/java/com/huawei/apidemo/TokenAPIDemo.java index b783051..e6d0e2f 100644 --- a/Account-Server-Java-Demo/src/main/java/com/huawei/apidemo/TokenAPIDemo.java +++ b/Account-Server-Java-Demo/src/main/java/com/huawei/apidemo/TokenAPIDemo.java @@ -55,13 +55,13 @@ public class TokenAPIDemo { // Callback url of application configuration String redirect_uri = "hms://redirect_url"; // Appid of the application registered on the developer Alliance. - String client_id = "101484061"; + String client_id = "101***061"; // Public key assigned to the application by Huawei developer alliance after application creation,please refrencing the interface description for more details - String client_secret = "14275e4b570993e065119f8d423b489d7b460ccaee3ddf13d0939af19ebb4799"; + String client_secret = "14275e4b5***39af19ebb4799"; // code which server have got. //By requesting the following URL to get code returned by the user to confirm the authorization // (url:https://oauth-login.cloud.huawei.com/oauth2/v3/authorize?response_type=code&access_type=offline&state=state_parameter_passthrough_value&client_id=101484061&redirect_uri=hms://redirect_url&scope=openid+profile) - String code = "CV4e3VYs22cDEVydKG7KlKbz4UrU1G78V9f7i4wqMzjzQ4lcYa90XRw37fWrYoPz8L%2B%2BqH8QHZW82bsPQ3eSPrdpF585YrXsNR%2BcuEKGKKlalq6ref5%2FX7V2%2BZzwIF0yUrRwmxqHoM4kpj4kcGZ0rTrpOy7xG4%2B41rpEdF7tZPod0WeDkSTv0gDWWq%2B64%2BAFyxDv17gDsm0%3D"; + String code = "CV4e3VY***w37fWrYoPz8L%2B%2BqH8QHZW82bsPQ3eSPrdpF585YrXsNR%2BcuEKGKKlalq6ref5%2FX7V2%2BZzwIF0yUrRwmx***od0WeDkSTv0gDWWq%2B64%2BAFyxDv17gDsm0%3D"; // If the code is obtained through the SDK, please ignore the following URLDecode code, Otherwise if the code is obtained through the web(eg. the value of the the preceding code ), please perform the following urlDecode operation. code = java.net.URLDecoder.decode(code, "utf-8"); -- Gitee