diff --git a/README.md b/README.md index 4d7d6204..93262260 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ * 🔒 Full account management. * Add multiple accounts and easily switch between them. + * Microsoft (OAuth 2.0) + Mojang (Yggdrasil) authentication fully supported. * Credentials are never stored and transmitted directly to Mojang. * 📂 Efficient asset management. * Receive client updates as soon as we release them. @@ -180,13 +181,15 @@ Note that you **cannot** open the DevTools window while using this debug configu Please give credit to the original author and provide a link to the original source. This is free software, please do at least this much. +For instructions on setting up Microsoft Authentication, see https://github.com/dscalzi/HeliosLauncher/blob/feature/ms-auth/docs/MicrosoftAuth.md. + --- ## Resources * [Wiki][wiki] * [Nebula (Create Distribution.json)][nebula] -* [v2 Rewrite Branch (WIP)][v2branch] +* [v2 Rewrite Branch (Inactive)][v2branch] The best way to contact the developers is on Discord. diff --git a/app/assets/js/ipcconstants.js b/app/assets/js/ipcconstants.js index dcd4d946..536e948b 100644 --- a/app/assets/js/ipcconstants.js +++ b/app/assets/js/ipcconstants.js @@ -1,14 +1,23 @@ -exports.AZURE_CLIENT_ID = 'FILL-IN' +// NOTE FOR THIRD-PARTY +// REPLACE THIS CLIENT ID WITH YOUR APPLICATION ID. +// SEE https://github.com/dscalzi/HeliosLauncher/blob/feature/ms-auth/docs/MicrosoftAuth.md +exports.AZURE_CLIENT_ID = '1ce6e35a-126f-48fd-97fb-54d143ac6d45' +// SEE NOTE ABOVE. + + +// Opcodes exports.MSFT_OPCODE = { OPEN_LOGIN: 'MSFT_AUTH_OPEN_LOGIN', OPEN_LOGOUT: 'MSFT_AUTH_OPEN_LOGOUT', REPLY_LOGIN: 'MSFT_AUTH_REPLY_LOGIN', REPLY_LOGOUT: 'MSFT_AUTH_REPLY_LOGOUT' } +// Reply types for REPLY opcode. exports.MSFT_REPLY_TYPE = { SUCCESS: 'MSFT_AUTH_REPLY_SUCCESS', ERROR: 'MSFT_AUTH_REPLY_ERROR' } +// Error types for ERROR reply. exports.MSFT_ERROR = { ALREADY_OPEN: 'MSFT_AUTH_ERR_ALREADY_OPEN', NOT_FINISHED: 'MSFT_AUTH_ERR_NOT_FINISHED'