Skip to content

Commit

Permalink
Merge pull request #4 from Thodor12/patch-1
Browse files Browse the repository at this point in the history
Force user into account selection using Minecraft oauth login
  • Loading branch information
marchermans authored Nov 19, 2024
2 parents e2c3bfa + 4a439e5 commit 5cf8927
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ protected override async Task<OAuthTokenResponse> 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
Expand Down Expand Up @@ -257,4 +258,4 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
return new AuthenticationTicket(context.Principal, context.Properties, Scheme.Name);
}
}
}
}

0 comments on commit 5cf8927

Please sign in to comment.