Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with redirect when useWebPopup = false #27

Open
josepcapotorres opened this issue Mar 24, 2023 · 5 comments
Open

Problems with redirect when useWebPopup = false #27

josepcapotorres opened this issue Mar 24, 2023 · 5 comments

Comments

@josepcapotorres
Copy link

josepcapotorres commented Mar 24, 2023

Good morning,
Apparently I've followed all the steps to get the web working with this plugin, and when it comes to the redirect, it redirects me to /null.
I'm testing the compiled web with Xampp.
 It works perfectly with useWebPopup = true, but the customer wants it to work without popup.
Screenshot 2023-03-22 at 17 24 22

The callback.html file is located in the root of the web folder, as you can see.

flavor_config_pixeled

The web form is shown without problem.

login_keycloak_pixeled

When it comes to the redirect after the login, it redirects me to /null.

redirect_error_pixeled

This is the content of the callback.html
callback_content

If anybody has any idea about what might be wrong, I will appreciate it a lot.

Thank you in advance.

@peach12345
Copy link
Contributor

Any news regarding this issue? We are investigating the same behaviour ..

@josepcapotorres
Copy link
Author

Any news. What I've done is to show the login with the popup, although it's not what the customer prefers, but at least we could deliver this part somehow.

@peach12345
Copy link
Contributor

peach12345 commented Mar 27, 2023

Same here. But sometimes the popup window together with blocker are causing problems.. So we want to switch ...

@josepcapotorres
Copy link
Author

That's why we want to switch as well

@peach12345
Copy link
Contributor

peach12345 commented May 8, 2023

Finally i found a solution for that issue.

You have to modify your index.html in web folder. I stored the destination on statup.

<script>
  window.addEventListener('load', function() {
    sessionStorage.setItem("openidconnect_auth_destination_url",window.location);
    var loading = document.querySelector('#loading');
    _flutter.loader.loadEntrypoint({
      serviceWorker: {

After callback you will be redirected to the correct page.

So my app is working without login popup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants