Blorc.OpenIdConnect
Blorc.OpenIdConnect copied to clipboard
LoadUserInfo with Resource seems to not being handled
Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)
- [ ] WPF
- [X] 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
}
}
- Login
- 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
We can close that, it was working! The error was due becased I forgot to add the "/" at the end of the resource name.
Thanks for the feedback, glad it was resolved!
Unfortunately, there is an error! It only occurs when setting
"LoadUserInfo": true
I'm testing with Logto provider.
We'll try to look into this as soon as we have resources available.
Hello, Any update on this one?
Not yet due to limited resources, but we are open for pull request or funding to prioritize this feature.
I can have a try. But I will wait that https://github.com/WildGums/Blorc.OpenIdConnect/pull/579 is closed. What do you think?