MultiMC: Difference between revisions

From NixOS Wiki
imported>Leo60228
m Leo60228 moved page Multimc to MultiMC: Correct capitalization
imported>Leo60228
Expand on MSA instructions
Line 1: Line 1:
=== Using a microsoft account ===
=== Using a Microsoft account ===


First you have to get an msa id
Microsoft authentication requires a client ID, which the package in Nixpkgs does not currently contain.


instructions: https://github.com/MultiMC/MultiMC5/blob/master/notsecrets/Secrets.cpp#L9
[https://github.com/MultiMC/MultiMC5/blob/master/notsecrets/Secrets.cpp The MultiMC source contains instructions to create one:]


then put this in your package list
# Register an app, following the instructions at https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app (make sure that you've set up a tenant as mentioned in the prerequisites)
# Restrict it to personal accounts
# Do *not* add a redirect URI, platform, credentials, certificates, or client secrets
# Enable public client flows
# Enable Live SDK support (under authentication)
 
You can then override the MultiMC package to include your client ID:
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
(multimc.override { msaClientID = "REPLACEWITHYOURID"; })
(multimc.override { msaClientID = "00000000-0000-0000-0000-000000000000"; })
</syntaxhighlight>
</syntaxhighlight>

Revision as of 12:19, 15 September 2021

Using a Microsoft account

Microsoft authentication requires a client ID, which the package in Nixpkgs does not currently contain.

The MultiMC source contains instructions to create one:

  1. Register an app, following the instructions at https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app (make sure that you've set up a tenant as mentioned in the prerequisites)
  2. Restrict it to personal accounts
  3. Do *not* add a redirect URI, platform, credentials, certificates, or client secrets
  4. Enable public client flows
  5. Enable Live SDK support (under authentication)

You can then override the MultiMC package to include your client ID:

(multimc.override { msaClientID = "00000000-0000-0000-0000-000000000000"; })