does someone know what the redirect_uri for a godot web export hosten on itch.io is?
it is for OAuth2.0/OIDC. i got so far that it gets the code from the auth server but the redirect_uri always fails.
i'm unable to host a separate website, so i was hoping that i can just add the callback.html file to the godot project and have it redirect to that file but it doesn't seem to work. any try to do it directly also doesn't work as it restarts the godot instance. redirecting to the main user.itch.io/game page also doesn't work as the game itself is inside an iframe under another url.
adding the html file to the zip also doesn't add it to the iframe url subpaths
I'm currently using window.open() to send the auth request and teh sub html page is using window.opener to find the godot instance again
(please ping)
#oidc on itch.io hosted clients
1 messages · Page 1 of 1 (latest)
I'm confused. Are you attempting to perform the OIDC auth flow inside your godot app hosted on itch? This may require some hackery on the web app encapsulating your game if so.
yeah
i tried to put the auth in front of the game loading but even there i didn't get it to work because of the unstable iframe url and that it is inisde an iframe to begin with (auth doesn't like iframe because of security)
The redirect uri can be any url, the url just needs to be registered with the OIDC provider.
If you've never seen this page before, I recommend giving it a read https://infosec.mozilla.org/guidelines/iam/openid_connect.html
infosec.mozilla.org : Guidelines, principles published on https://infosec.mozilla.org
sure but how do i get back into the games iframes scope? the url of the iframe isn't stable, so i don't have an url that i can link the provider to.