unity-google-drive icon indicating copy to clipboard operation
unity-google-drive copied to clipboard

Add URI auth scheme support for UWP

Open hippogamesunity opened this issue 6 years ago • 8 comments

In UPW build, after I press Allow in browser, it redirects me to localhost. And nothing happens. image

BTW I can confirm your plugin works in Editor, Android, iOS and macOS. UWP is the last boss for me, so I will thank you for any help and tips =)

hippogamesunity avatar Sep 18 '19 18:09 hippogamesunity

I guess you need to allow the app to access localhost. Check this: https://stackoverflow.com/questions/33259763/uwp-enable-local-network-loopback

elringus avatar Sep 18 '19 22:09 elringus

Do you mean each user should execute the code after installing an UWP app from Microsoft Store?) c:\>checknetisolation loopbackexempt -a -n=<package family name>

I've also tried enabling client&server feature with no luck: image

hippogamesunity avatar Sep 19 '19 16:09 hippogamesunity

Here is another link I've found: https://wpdev.uservoice.com/forums/110705-universal-windows-platform/suggestions/36604855-allow-localhost-loopback-capability-in-uwp-apps-de

Seems it's not possible to pass MS Review with localhost loopback enabled.

hippogamesunity avatar Sep 19 '19 16:09 hippogamesunity

The app should ask for a permission to access localhost, which is done with the aforementioned utility. It's just a guess, though.

elringus avatar Sep 19 '19 16:09 elringus

image

hippogamesunity avatar Sep 19 '19 16:09 hippogamesunity

image https://docs.microsoft.com/en-us/previous-versions/windows/apps/hh780593(v=win.10)#enable-loopback-for-network-access

hippogamesunity avatar Sep 19 '19 17:09 hippogamesunity

I've found this: https://developers.google.com/identity/protocols/OAuth2InstalledApp So I suppose you shouldn't use localhost loopback for UWP. I can help you with QA if you will implement option 1 =) image

hippogamesunity avatar Sep 19 '19 17:09 hippogamesunity

Ah, looks like they've changed the recommended scheme for UWP.

Unfortunately, I'm unable to work on that at the moment, but if anyone is interested, feel free to send PRs.

elringus avatar Sep 19 '19 17:09 elringus