From 4a439e5e0e9443936b49be7d397f7c25273beb33 Mon Sep 17 00:00:00 2001 From: Thom van den Akker Date: Tue, 19 Nov 2024 16:51:21 +0100 Subject: [PATCH] Force user into account selection screen --- .../MinecraftAuthenticationHandler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OAuth/AspNet.Security.OAuth.Minecraft/MinecraftAuthenticationHandler.cs b/OAuth/AspNet.Security.OAuth.Minecraft/MinecraftAuthenticationHandler.cs index 86adaa5..4852707 100644 --- a/OAuth/AspNet.Security.OAuth.Minecraft/MinecraftAuthenticationHandler.cs +++ b/OAuth/AspNet.Security.OAuth.Minecraft/MinecraftAuthenticationHandler.cs @@ -39,6 +39,7 @@ protected override async Task ExchangeCodeAsync(OAuthCodeExc {"code", context.Code}, {"scope", "Xboxlive.signin Xboxlive.offline_access"}, {"grant_type", "authorization_code"}, + {"prompt", "select_account"}, }; // PKCE https://tools.ietf.org/html/rfc7636#section-4.5, see BuildChallengeUrl @@ -257,4 +258,4 @@ protected override async Task CreateTicketAsync( return new AuthenticationTicket(context.Principal, context.Properties, Scheme.Name); } } -} \ No newline at end of file +}