Here is the code:
"https://login.live.com/oauth20_authorize.srf?client_id=" +
process.env.MIX_LIVE_CLIENT_ID +
"&scope=service::user.auth.xboxlive.com::MBI_SSL&response_type=code&redirect_uri=" +
process.env.MIX_LIVE_REDIRECT_URL +
"&state=ClientStateGoesHere"
This is the scope I have created in the microsoft azure account.
scope=service::user.auth.xboxlive.com::MBI_SSL
But I am getting below error when open the page for login using xbox.
Optional Info
I have researched a lot about this and found that Xbox live scope is a service scope that is already authorized in every client. But service scope doesn't work in
response_type
token. It must be set toresponse_type: 'code'
Your Solution
Change scope to the actual service scope of Azure AD i.e.
XboxLive.signin
and another optional scope isXboxLive.offline_access
to get refresh token.By the way, I guess the
service::user.auth.xboxlive.com::MBI_SSL
requires ID@Xbox to use it.