aboutsummaryrefslogtreecommitdiff
path: root/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2022-11-17 00:26:20 +0900
committersyeyoung <cyoung06@naver.com>2022-11-17 00:26:20 +0900
commitb42e3286fa3b2ac52989a83d1fac45bf47b3d1ed (patch)
treed74c9a3932d738f4065662f72bd54bb0b3c11577 /loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth
parentd07321fe03f6316f28d8421b7cd4e93dfdfd6b2e (diff)
downloadSkyblock-Dungeons-Guide-b42e3286fa3b2ac52989a83d1fac45bf47b3d1ed.tar.gz
Skyblock-Dungeons-Guide-b42e3286fa3b2ac52989a83d1fac45bf47b3d1ed.tar.bz2
Skyblock-Dungeons-Guide-b42e3286fa3b2ac52989a83d1fac45bf47b3d1ed.zip
- Fix base64 encode mismatch
- Privacy Policy Gui v1 Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth')
-rw-r--r--loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java2
-rw-r--r--loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/DgAuthUtil.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java
index c6834a47..27a0b6dc 100644
--- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java
+++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java
@@ -112,7 +112,7 @@ public class AuthManager {
}
- AuthToken acceptPrivacyPolicy() {
+ public AuthToken acceptPrivacyPolicy() {
if (reauthLock) {
while(reauthLock);
return currentToken;
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/DgAuthUtil.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/DgAuthUtil.java
index 68a31ccd..be247c88 100644
--- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/DgAuthUtil.java
+++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/DgAuthUtil.java
@@ -59,7 +59,7 @@ public class DgAuthUtil {
json.isNull("qrCode") ? null: json.getString("qrCode")
);
- if (!"SUCCESS".equals(response.getStatus())) {
+ if (!"Success".equals(response.getStatus())) {
throw new AuthServerException(response);
}
@@ -129,7 +129,7 @@ public class DgAuthUtil {
urlConnection.setDoInput(true);
urlConnection.setDoOutput(true);
- urlConnection.getOutputStream().write(("{\"jwt\":\""+tempToken+"\",\"sharedSecret\":\""+Base64.encodeBase64URLSafeString(encSecret)+"\"}").getBytes());
+ urlConnection.getOutputStream().write(("{\"jwt\":\""+tempToken+"\",\"sharedSecret\":\""+Base64.encodeBase64String(encSecret)+"\"}").getBytes());
JSONObject data = getResponse(urlConnection, JSONObject.class);
try {