Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please consider adding the "login_hint" parameter #46

Closed
2 tasks done
fish90815 opened this issue Apr 16, 2022 · 3 comments · Fixed by #84 or #85
Closed
2 tasks done

Please consider adding the "login_hint" parameter #46

fish90815 opened this issue Apr 16, 2022 · 3 comments · Fixed by #84 or #85
Labels
enhancement New feature or request

Comments

@fish90815
Copy link

Is your feature request related to a problem?

Sorry for my bad English! I'll try my best to explain it!
I have multiple accounts which log on several different Minecraft instance.
The problem is prompt = select_account always needed to select via browser which is a pain for me.

Recently I'm writing some scripts to test the oAuth and notice that adding
&login_hint = my account name,
which is trusted and authentication before, can directly get the auth code without selecting.(just one click like prompt none or default)

Describe the solution you'd like.

Just simply add a new text block for custom "login_hint" parameter to the config page.
and simply concat that parameter with the whole URL.

Describe alternatives you've considered.

I've tried several ways to deal with this problem, but none of those as simple as adding a single parameter behind the URL.

Agreements

  • I have searched for and ensured there isn't already an open issue regarding this.
  • I have ensured the feature I'm requesting isn't already in the latest supported mod version.

Other

No response

@axieum axieum added the enhancement New feature or request label Apr 17, 2022
@roberestarkk
Copy link

roberestarkk commented Apr 29, 2022

I have this same exact issue where I have multiple Microsoft accounts, my main server admin account, and a regular user test account.

It would be cool if instead of/as well as the login hint, if when clicking 'Microsoft' and having it open a page on localhost, if that page would first wait for a button to be clicked before it proceeded with it's shenaniganery.
That would allow us to copy that url from the default browser, and paste it into an account container tab, or a different browser, or a private browsing window or something, so that then when we clicked the button it'd use the cached authentication (or cookie or something) from the account that we 'selected' by pasting the URL into the appropriate context.

A potentially neater alternative could be to show the URL in the Minecraft client itself after selecting that option, and have a button to open it in the browser, and another button to copy it to clipboard to open however/wherever you wanted...

@axieum
Copy link
Owner

axieum commented Apr 29, 2022

Hi @roberestarkk,

You can ask it to prompt you to choose an account by going to the mod list, finding Auth Me, clicking on settings, and then changing the Microsoft interaction prompt to select_account. It's towards the end of the GIF in the mod description.

Let me know how you go,
Ax.

@roberestarkk
Copy link

Oh that works great, cheers :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants