aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft
diff options
context:
space:
mode:
authorLenny McLennington <lennymclennington@protonmail.com>2021-12-20 02:41:08 +0000
committerLenny McLennington <lennymclennington@protonmail.com>2021-12-20 02:57:13 +0000
commite6246a9306567f5646d3bc1971a1c5c4cf8f4f54 (patch)
tree17a4e24951924f1cfcda2558bf5d13bd620a5625 /launcher/minecraft
parentdcb57f199531e45ac4bf947eaf8cbfe5e66fce23 (diff)
downloadPrismLauncher-e6246a9306567f5646d3bc1971a1c5c4cf8f4f54.tar.gz
PrismLauncher-e6246a9306567f5646d3bc1971a1c5c4cf8f4f54.tar.bz2
PrismLauncher-e6246a9306567f5646d3bc1971a1c5c4cf8f4f54.zip
Move MSA Client ID to the same place as the others
MSA Client ID has been moved to CMakeLists.txt, and defaults to the Client ID for the PolyMC application. Removed secrets/notsecrets library, replace with (temporary?) program_info subdirectory.
Diffstat (limited to 'launcher/minecraft')
-rw-r--r--launcher/minecraft/auth/steps/MSAStep.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/minecraft/auth/steps/MSAStep.cpp b/launcher/minecraft/auth/steps/MSAStep.cpp
index be711f7e..bc10aa4e 100644
--- a/launcher/minecraft/auth/steps/MSAStep.cpp
+++ b/launcher/minecraft/auth/steps/MSAStep.cpp
@@ -2,6 +2,7 @@
#include <QNetworkRequest>
+#include "BuildConfig.h"
#include "minecraft/auth/AuthRequest.h"
#include "minecraft/auth/Parsers.h"
@@ -13,7 +14,7 @@ using Activity = Katabasis::Activity;
MSAStep::MSAStep(AccountData* data, Action action) : AuthStep(data), m_action(action) {
OAuth2::Options opts;
opts.scope = "XboxLive.signin offline_access";
- opts.clientIdentifier = APPLICATION->msaClientId();
+ opts.clientIdentifier = BuildConfig.MSA_CLIENT_ID;
opts.authorizationUrl = "https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode";
opts.accessTokenUrl = "https://login.microsoftonline.com/consumers/oauth2/v2.0/token";