hippogamesunity / SimpleSignIn

A set of assets for Unity to authenticate users on different platforms with OAuth 2.0
4 stars 0 forks source link

Windows Login Issue #23

Closed divieirasilva closed 2 months ago

divieirasilva commented 2 months ago

In Editor is working fine, I already checked the Client ID and Client Secret in both This issue seems to started after updating to 4.6 of Google Simple Signin

image
hippogamesunity commented 2 months ago

Hello! As it says, your redirect URI does not match to the one specified for your client ID. Visit Google Cloud to check it.

divieirasilva commented 2 months ago

Hello, thank you for answering me, I have a production version with old Package in Steam and that version is still working fine, only the updated package version is not working. Also, where can I set the redurect URI in desktop credential? I followed this screenshot in docs. (sorry if I am making any silly mistake, english is not my primary language 🙏🏻)

image

hippogamesunity commented 2 months ago

What is your platform and what is the full URL you're navigating? I don't know about any compilers, sorry.

divieirasilva commented 2 months ago

That compilers message, I think was a bot. That is not part of my issue.

I am using Windows 11 (64bit) and only there the problem is showing, in Editor is working fine (with the same Client ID set).

The URL (I cropped my ClientID): https://accounts.google.com/o/oauth2/v2/auth?response_type=code&scope=openid%20email%20profile&redirect_uri=soul.shifters%3A%2Foauth2%2Fgoogle&client_id=1021323784810-qe......

divieirasilva commented 2 months ago

I found the problem, I set the Desktop Client ID and Secret from Cloud Console in the Windows config fields. Now I copy the config from Generic into the Windows fields and it is working again. I probably made that mistake when I updated the package and the GoogleAuthSettings reset from Import Package.

But it's working now. Thank you for the assistance and sorry for the trouble 🙏🏻

hippogamesunity commented 2 months ago

Great, please write a review if possible. Good luck!