Blorc.OpenIdConnect icon indicating copy to clipboard operation
Blorc.OpenIdConnect copied to clipboard

LoadUserInfo with Resource seems to not being handled

Open kjbtech opened this issue 1 year ago • 7 comments

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
    }
  }
  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 avatar Apr 29 '24 07:04 kjbtech

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 avatar Apr 30 '24 08:04 kjbtech

Thanks for the feedback, glad it was resolved!

GeertvanHorrik avatar Apr 30 '24 08:04 GeertvanHorrik

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

"LoadUserInfo": true

I'm testing with Logto provider.

kjbtech avatar May 23 '24 13:05 kjbtech

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

GeertvanHorrik avatar Jun 14 '24 15:06 GeertvanHorrik

Hello, Any update on this one?

kjbtech avatar Jul 19 '24 08:07 kjbtech

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

GeertvanHorrik avatar Jul 31 '24 07:07 GeertvanHorrik

I can have a try. But I will wait that https://github.com/WildGums/Blorc.OpenIdConnect/pull/579 is closed. What do you think?

kjbtech avatar Jul 31 '24 12:07 kjbtech