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.

Problem with the scope that is returned in the response to get the token

See original GitHub issue

Here my authentication stack:

When getting the access token using the api token, his client library expects to receive back a scope that is a string in the same format than the scope we usually submit to authentication servers (a sequence of scopes separated with a space). It appears that SimpleIdServer doesn’t return a string in this format but an array of string representing the list of scopes.

By looking in your code, I see this is fully intentional: https://github.com/simpleidserver/SimpleIdServer/blob/f58f998b702f648b9c6f79aed1fcd015872a935e/src/OAuth/SimpleIdServer.OAuth/Api/Token/Handlers/BaseCredentialsHandler.cs#L40-L47

My question is:

Who, from the two of you must correct something in his development? 😄

FYI, here is the issue I raised at oidc.client.ts side: https://github.com/authts/oidc-client-ts/issues/542

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
simpleidservercommented, May 24, 2022

Probably tomorrow 😃

0reactions
simpleidservercommented, May 24, 2022

A pre-release package version “2.0.9-ci-00282” is available on the feed “https://www.myget.org/F/advance-ict/api/v3/index.json

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scope is not being added to Access Token returned from ...
The issue is that when we request a token from Azure AD, scope is not being set in our token claims resulting in...
Read more >
OAUTH Token request/response not sending scopes
Now I don't have any scopes returned at all. I am doing all my testing with postman right now. So there isn't anything...
Read more >
Scopes being removed when getting a token
The return response includes the token and scopes, but the scope only has "Files.Read.All" with everything else missing.
Read more >
Identity token does not include scopes when using ...
The returned identity token does not include the requested custom scopes. These scopes are configured for both the api and the user.
Read more >
Issues with Scopes assignment in Azure AD
If a token is requested with product:A:view scope, the token response contains all the scopes from the Product-A, i.e. both product:A:view and ...
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