hippogamesunity / SimpleSignIn

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

Authentication does not work in safari #5

Open leojungjung opened 3 days ago

leojungjung commented 3 days ago

Hi. I had a problem with Google authentication in webgl, with Google and Opera they work perfectly, both on PC and on cell phones (Android and IOS), but when I try to log in to Safari nothing happens, nothing opens, not even a page from Google or the Authorization Middleware. I disabled the Block Pop-ups option in the safari configuration, now an alert appears saying if I want it to open a new tab, so I can log in with Google, but when I return from authorization Middleware it returns User Cancelled.

Video showing the error: https://drive.google.com/file/d/1Q3-nK-WM20tmMLywD4Vh-x_z0A_3H35G/view?usp=sharing

hippogamesunity commented 3 days ago

Hello! Just want to note, that my asset can't manage anything happens after redirecting users to oauth endpoint with Application.OpenURL. Some browsers may block new tabs, deep links or limit webgl content in any way. As the first issue was solved and you can visit Google oauth endpoint, I would recommend to check deep linking settings in Safari, maybe they are also blocked for some reason.

чт, 4 июл. 2024 г., 15:44 Léo Jung Neves @.***>:

Hi. I had a problem with Google authentication in webgl, with Google and Opera they work perfectly, both on PC and on cell phones (Android and IOS), but when I try to log in to Safari nothing happens, nothing opens, not even a page from Google or the Authorization Middleware. I disabled the Block Pop-ups option in the safari configuration, now an alert appears saying if I want it to open a new tab, so I can log in with Google, but when I return from authorization Middleware it returns User Cancelled.

Video showing the error: https://drive.google.com/file/d/1Q3-nK-WM20tmMLywD4Vh-x_z0A_3H35G/view?usp=sharing http://url

— Reply to this email directly, view it on GitHub https://github.com/hippogamesunity/SimpleSignIn/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABX2VHHFBVLIR77SEO2RS3LZKU7SDAVCNFSM6AAAAABKLPLQGWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TANZYG4YDIOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

leojungjung commented 3 days ago

I understood. I believe that what is probably preventing the middeware application from returning with the credentials is the alert that appears when trying to open a new tab (this site is trying to open a pop-up window), when I allow it, it redirects to google normally, but When you return to the application, for a short period of time, the alert continues to appear and then closes, but then shows the user canceled error message.

hippogamesunity commented 3 days ago

Can you share the link to your app?

чт, 4 июл. 2024 г., 16:00 Léo Jung Neves @.***>:

I understood. I believe that what is probably preventing the middeware application from returning with the credentials is the alert that appears when trying to open a new tab (this site is trying to open a pop-up window), when I allow it, it redirects to google normally, but When you return to the application, for a short period of time, the alert continues to appear and then closes, but then shows the user canceled error message.

— Reply to this email directly, view it on GitHub https://github.com/hippogamesunity/SimpleSignIn/issues/5#issuecomment-2208929292, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABX2VHFBEKBVBL3D6TTSRDDZKVBOXAVCNFSM6AAAAABKLPLQGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBYHEZDSMRZGI . You are receiving this because you commented.Message ID: @.***>

hippogamesunity commented 3 days ago

Also I was wrong about deep linking, for WebGL there is no deep linking, Middleware should show you a message to return to the app. The app requests an oauth with a web request when activated.

чт, 4 июл. 2024 г., 16:22 Hippo Games @.***>:

Can you share the link to your app?

чт, 4 июл. 2024 г., 16:00 Léo Jung Neves @.***>:

I understood. I believe that what is probably preventing the middeware application from returning with the credentials is the alert that appears when trying to open a new tab (this site is trying to open a pop-up window), when I allow it, it redirects to google normally, but When you return to the application, for a short period of time, the alert continues to appear and then closes, but then shows the user canceled error message.

— Reply to this email directly, view it on GitHub https://github.com/hippogamesunity/SimpleSignIn/issues/5#issuecomment-2208929292, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABX2VHFBEKBVBL3D6TTSRDDZKVBOXAVCNFSM6AAAAABKLPLQGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBYHEZDSMRZGI . You are receiving this because you commented.Message ID: @.***>

leojungjung commented 3 days ago

yess, https://feira-de-jogos.dev.br