elringus / unity-google-drive

Google Drive SDK for Unity game engine

Home Page:https://forum.unity.com/threads/515360

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebGL authorization redirection opens new window rather than returning to original window

dustinkerstein opened this issue · comments

I'm trying to test out WebGL builds, and when I go to select a Google Account, rather than being returned to the original browser window, a new window is opened with the following URL:

http://localhost:58479/#access_token=[XYZ]&token_type=Bearer&expires_in=3599&scope=openid%20https://www.googleapis.com/auth/drive.file&authuser=2&prompt=consent

Does this point to an issue with my web server setup (currently just using Unity's built-in server via "Build and Run"), or could there be another underlying issue?

Thanks,
Dustin

FYI, I tried with another web server and other browsers, and I get the same result.

I guess based on this post - https://stackoverflow.com/questions/66504307/unity-and-google-oauth2-authorization-code-flow - the behavior I'm describing might be the intended design (as the redirect URL should be on the server side). Is that the case? If so, would the technique described in the SO post be a recommended workaround?

This issue is stale because it has been open 14 days with no activity. It will be automatically closed in 7 days.