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

Authentication with App Bridge 4 #89

Open
HeartCoding opened this issue Nov 14, 2024 · 2 comments
Open

Authentication with App Bridge 4 #89

HeartCoding opened this issue Nov 14, 2024 · 2 comments

Comments

@HeartCoding
Copy link

I was wondering if you are working on a solution for app bridge 4.
Especially for embedded apps to redirect to the targetUrl in the iframe_redirect.html file.
If I see it correctly it is no longer possible to use the Redirect method.
I tried the following solutions but they don't seem to work:

const targetUrl = '{{ redirect_uri|safe }}';
window.open(targetUrl, "_top");

or

const targetUrl = '{{ redirect_uri|safe }}';
navigation.navigate(targetUrl, {
    history: 'push',
});

Any help would be greatly appreciated.
And thanks a lot for maintaining this repository

@stlk
Copy link
Owner

stlk commented Nov 20, 2024

window.open(targetUrl, "_top"); should definitely work. Does browser console say anything?

@HeartCoding
Copy link
Author

I've just again tested the method but unfortunately it does not work for me.
I get the a 404 "There's no page at this address" with no error in the console.
I've double checked the URL and it should be fine.
The old method with App Bridge 3 still seems to work correctly but would you mind sharing an example for this file in App Bridge 4?

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