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 9 months 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