Where is the XboxLive scope in Azure AD app?

DataPocalypse 10 Reputation points
2023-04-21T18:06:01.22+00:00

How we can authenticate XboxLive players with AAD? I'm unable to find the XboxLive scopes.

On a gameserver that have Steam and XBL players, it is a nightmare to have equal features that require Omniauth/Openid authentication.

I just need the XBL_ID and gamertag, nothing more, how I can do that?

Thank you in advance.

(PS: I already searched and read all topics about that without success, nothing work.)

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,582 questions
{count} votes

2 answers

Sort by: Most helpful
  1. LOSTMSU 6 Reputation points
    2023-10-10T18:59:49.4266667+00:00

    I solved the issue by using https://login.microsoftonline.com/consumers authorization endpoint instead of https://login.microsoftonline.com/common This way I got the XboxLive.signin scope without adding it in advance to App Registration in Azure Portal.

    E.g. with MSAL JavaScript:

    const msalConfig = {
      auth: {
        clientId: ...,
        authority: 'https://login.microsoftonline.com/consumers',
      },
      ...
    };
    
    1 person found this answer helpful.
    0 comments No comments

  2. wouter bruijn 0 Reputation points
    2024-02-15T20:25:54.8133333+00:00

    I ran into the same issue, I had the wrong scopes selected which somehow broke the whole system. Make sure you remove any unnecessary scopes. Better yet just use "offline_access XboxLive.signin".

    For me it was caused by the User.Read scope


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.