Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoadUserInfo with Resource seems to not being handled #611

Open
1 of 3 tasks
kjbtech opened this issue Apr 29, 2024 · 7 comments
Open
1 of 3 tasks

LoadUserInfo with Resource seems to not being handled #611

kjbtech opened this issue Apr 29, 2024 · 7 comments

Comments

@kjbtech
Copy link

kjbtech commented Apr 29, 2024

Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)

  • WPF
  • Blazor WASM
  • .NET Core

Component

As mentionned in a logto issue, it seems that the library does not handle the ExtraTokenParams node with a resource child.

Version of Library

1.9.0-beta0001

Version of OS(s) listed above with issue

Windows 11

Steps to Reproduce

1.Define:

  "IdentityServer": {
    "Authority": xx",
    "ClientId": "xx",
    "RedirectUri": "xx", // Remember to configure this in Logto
    "PostLogoutRedirectUri": "xx", // Remember to configure this in Logto
    "ResponseType": "code",
    "Scope": "openid profile",
    "LoadUserInfo": true,
    "Resource": "yy",
    "ExtraTokenParams": {
      "resource": "yy" // Ensure the key is lowercase
    }
  }
  1. Login
  2. Wait error when redirecting to your web app

(If I remove the JSON node "ExtraTokenParams", there is no trouble!)

Expected Behavior

Being redirected without an error.

Actual Behavior

Capture d'écran 2024-04-26 164906

@kjbtech
Copy link
Author

kjbtech commented Apr 30, 2024

We can close that, it was working!
The error was due becased I forgot to add the "/" at the end of the resource name.

@kjbtech kjbtech closed this as not planned Won't fix, can't repro, duplicate, stale Apr 30, 2024
@GeertvanHorrik
Copy link
Member

Thanks for the feedback, glad it was resolved!

@kjbtech kjbtech reopened this May 23, 2024
@kjbtech
Copy link
Author

kjbtech commented May 23, 2024

Unfortunately, there is an error!
It only occurs when setting

"LoadUserInfo": true

I'm testing with Logto provider.

@kjbtech kjbtech changed the title ExtraTokenParams seems to not being handled LoadUserInfo with Resource seems to not being handled May 23, 2024
@GeertvanHorrik
Copy link
Member

We'll try to look into this as soon as we have resources available.

@kjbtech
Copy link
Author

kjbtech commented Jul 19, 2024

Hello,
Any update on this one?

@GeertvanHorrik
Copy link
Member

Not yet due to limited resources, but we are open for pull request or funding to prioritize this feature.

@kjbtech
Copy link
Author

kjbtech commented Jul 31, 2024

I can have a try. But I will wait that #579 is closed.
What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants