Undefined redirect uri when authenticating using the OpenId plugin

I am trying to setup Entra ID authentication using the OpenID plugin in weweb.

I have set up the Domain, ClientId, Client Secret, scope and response type. I have also configured a redirectUri in my Entra ID app registration. The redirect uri points to a public page in my weweb application, which currently is not deployed, but only available in the editor.

When I’m running the “Login with Redirect” or “Redirect with popup” OpenID workflows in Weweb, and Entra ID redirects back to my redirectUri, it manages to only get parts of my redirectUri.

The redirectUri is in the format https://editor.weweb.io/guid1/guid2, but instead it redirects me to https://editor.weweb.io/guid1/undefined, which causes it to crash.

Any advice? Thanks!

Hi @amulin can you check if wwParams might be interfering with your navigation? Navigation | WeWeb Documentation

@danlopes That might be the case, but in that case it’s not something I can see explicitly. Any advice on how I can debug it? I guess I would need to monitor the request as it’s entering the application somehow

I managed to fix this by clearing my browser local storage and cookies.