ForgeRock / openam-community-edition

Access Management - AuthN, AuthZ, SSO, Fedaration
https://forgerock.github.io/openam-community-edition/
123 stars 59 forks source link

Uncaught TypeError: e.data.split is not a function in checkSession call #72

Open bkrajendra opened 3 months ago

bkrajendra commented 3 months ago

Facing this issue after loginflow is complete. I am using client-type=public. and implemented oauth2 with PKCE in angular web UI.

Login flow is working fine, but after login i am getting this exception continuously in Brower console. Token is valid and I am able to use the accessToken and retrieve resource with it.

image

Moreover the sha256.js file is throwing 404.

I am using ForgeRock Access Management 7.4.0 Build 56df33df40977206569052a683f5317ade19ee3e (2023-October-03 21:55)

What could be the issue here?

Reference: https://github.com/ForgeRock/openam-community-edition/blob/46bfef3fe0a2d99a9ff6d6e55f773d960a40b95a/openam-server-only/src/main/webapp/oauth2/checkSession.jsp#L44

jocodeone commented 1 month ago

I just stumbled over the same problem. The problem disappears in Safari and probably other browsers as the event.data object is differently handled in Chrome. That's why there is an error like this.

@bkrajendra Did you solve the issue somehow?