diff --git a/README.md b/README.md index 4f2e77b..18700c7 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![Issues][issues-shield]][issues-url] [![GPL-3.0 License][license-shield]][license-url] -**MineCraft Launcher. or MineCraft cLi. pick whichever sounds better to you.** +**M**ine**C**raft **L**auncher. or **M**ine**C**raft c**L**i. pick whichever sounds better to you. ![screenshot](assets/screenshot.png) @@ -40,6 +40,16 @@ it does everything you'd expect from a launcher. multiple instances, mod loaders --- +## authentication + +mcl currently uses the Microsoft client ID from [portablemc](https://github.com/mindstorm38/portablemc) for Minecraft account authentication. + +this is temporary while mcl is going through the official Microsoft/Minecraft app approval process. once approved, mcl will switch to its own client ID. + +authentication still happens through Microsoft’s official services. + +--- + ## installation ### Arch Linux diff --git a/src/auth/oauth.rs b/src/auth/oauth.rs index 33bc335..32d2c65 100644 --- a/src/auth/oauth.rs +++ b/src/auth/oauth.rs @@ -14,7 +14,7 @@ use serde::Deserialize; use super::accounts::{Account, AccountType, AuthResult}; -const CLIENT_ID: &str = "cc1b2d89-8d8b-439f-94e6-4a7fc484f672"; +const CLIENT_ID: &str = "708e91b5-99f8-4a1d-80ec-e746cbb24771"; const DEVICE_CODE_URL: &str = "https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode"; const MSA_AUTHORIZE_URL: &str = "https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize"; const MSA_TOKEN_URL: &str = "https://login.microsoftonline.com/consumers/oauth2/v2.0/token";