question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Xbox authentication

See original GitHub issue

Confirm you’ve already contributed to this project or that you sponsor it

  • I confirm I’m a sponsor or a contributor

Version

4.x

Describe the bug

When trying to use the XboxLive.profile scope I’m getting the following error:

{
    "error": "invalid_scope", 
    "error_description": "The provided value for the input parameter 'scope' is not valid. The scope 'openid XboxLive.profile' does not exist.",
    "state": "4MR0QXicSbQ5H9-O_KLePIl8urKpnrAkR4utt4O04SA"
}

Since openid is prepended to the scope name, it looks like there is a formatting issue.

To reproduce

options.UseWebProviders().UseMicrosoft(microsoft =>
{
    microsoft.SetClientId(microsoftClientId)
        .SetClientSecret(microsoftClientSecret)
        .SetRedirectUri("connect/callback-microsoft")
        .Configure(microsoft => microsoft.Scopes.Add("XboxLive.profile"));
});

Exceptions (if any)

No response

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
kevinchaletcommented, May 15, 2023

Thanks! Could you give me some pointers to make my own userinfo handler for when a xbox scope is specified 🙏

Here’s an example of a handler that resolves the userinfo claims from a different place (here, from custom parameters returned as part of the token response, instead of a dedicated endpoint):

https://github.com/openiddict/openiddict-core/blob/c2f12183cde4b46475d56e94ffa374b42e040f45/src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs#L583-L677

That said, I’d personally opt for a different approach by doing the Xbox profile resolution directly in your /callback/login/microsoft callback MVC action.

0reactions
verdie-gcommented, May 15, 2023

Thanks! Could you give me some pointers to make my own userinfo handler for when a xbox scope is specified 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connection Issues: “Additional authentication needed”
I turned on my XBOX ONE console today and found I wasn't connected to XBOX Live. I went into my network settings and...
Read more >
"Additional Authentication Needed" error on Xbox One ...
The “Additional authentication required” error on your Xbox One may appear if someone has previously blacklisted the console on your router.
Read more >
Account authentication and access overview
Describes how to authenticate and access accounts, use the Xbox Authentication Library, and use XUser API contents.
Read more >
Additional Authentication Needed on Xbox
In this troubleshooting guide, we have presented the possible solutions to fix the Additional Authentication Needed error on Xbox console.
Read more >
Additional authentication needed glitch : r/XboxSupport
My Xbox won't connect to my internet and says “additional authentication needed” it's been doing this for 3 days I don't know what...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found