axieum / authme

:lock: Authenticate yourself in Minecraft and re-validate your session
https://www.curseforge.com/minecraft/mc-mods/auth-me
MIT License
92 stars 34 forks source link

Is it possible to change app ID? #109

Open Nukecraft5419 opened 8 months ago

Nukecraft5419 commented 8 months ago

Is your feature request related to a problem?

No

Describe the solution you'd like.

And you can change the ID of the app that it applies to for Microsoft account access so a modpack can have its own login as well as then remove the Mojang, Microsoft, Offline login keys and so if the session expires you click over the key that is in the server list and it automatically logs back in with the Microsoft account

Describe alternatives you've considered.

Only the one about a dedicated fork for my modpack but I prefer to ask first

Agreements

Other

No response

axieum commented 8 months ago

Sure, you can change the app id in the mod configuration. It's under methods > microsoft > clientId. You can also check #69 where someone was able to setup their own application id.

There's a bit of setup required, quoted the below dated 15th Jan 2023 for a similar issue setting up an application.

@axieum: I believe the issue is that, even though you're not using a secret, it still expects there to be at least one secret on the application... I know it sounds weird, but is worth a shot!

[redacted]: Thank you very much - between switching the platform type from "Web" to "Mobile and desktop applications", switching "Allow public client flows" on, and adding an unused client secret, it is now working without a client secret.

Please note, that recently Mojang now require you to apply for approval on your Azure application as per this support article: https://help.minecraft.net/hc/en-us/articles/16254801392141p. Use this form: https://aka.ms/mce-reviewappid

Hopefully this helps @Nukecraft5419, let me know how you go. :)

Nukecraft5419 commented 8 months ago

To get custom application IDs I know it takes Azure just I didn't understand then everything else i.e. is it something that requires a subscription or is it already available in the free part and it's my first time using Azure

axieum commented 8 months ago

That's right, you can create your application in Azure for free.

Nukecraft5419 commented 8 months ago

Hi, I am still trying to figure out how to access the Azure root folder. I know it is usually necessary to follow this path, but when I try to log in I am prompted to log in and I get a red error saying I don't have the necessary permissions.

If you know how to solve this problem, I would really appreciate it. Also, I wanted to ask if the name of the creator of the app is listed anywhere. I would like to understand if I need to create a Microsoft account specifically for the app or if I can use my personal account.