Vindictii Posted October 9, 2017 Share Posted October 9, 2017 I have a website that uses Google's authentication API to allow users to login with their Google account. I want to be able to login to the website from within SL using media on a prim. The rest of the media (the website) loads fine, but when I click Google's sign in button it fails to open Google's sign in page. From a normal browser (outside of SL) Google's sign in button opens a popup - could this be the issue or does SL block such connections? Link to comment Share on other sites More sharing options...
Whirly Fizzle Posted October 9, 2017 Share Posted October 9, 2017 Firestorm viewer has the option "Enable media browser pop-ups" in Preferences -> Network & Files -> Connection. I don't see a pop-ups setting in the LL viewer. What's the URL of your website? Link to comment Share on other sites More sharing options...
Vindictii Posted October 9, 2017 Author Share Posted October 9, 2017 I tried toggling that setting in preferences and did not notice a change. The website is www.CoreHoundSystem.com (Please not much of the site is under-construction - but the Google API stuff is ready for use.) Link to comment Share on other sites More sharing options...
Whirly Fizzle Posted October 9, 2017 Share Posted October 9, 2017 Thanks! The Google sign in works fine when using the viewer's internal web browser - the sign in page opens a secondary internal browser window or opens in the external browser, depending on preference settings. I can confirm the sign in page fails to open on Firestorm 5.0.7 & LL viewer Second Life 5.0.7.328060 (Second Life Release). The sign in page also fails to open using the LL Alex Ivy RC viewer: Second Life Release 5.1.0.508209 (64bit), which uses a more up to date version of CEF. I also tested using an old viewer build which still used Webkit instead of CEF & it didn't work either. I don't know if this is a bug that should be fixed in the viewers or not. One of the Firestorm developers thinks this may be the problem: https://github.com/nraboy/ng-cordova-oauth/issues/283 Link to comment Share on other sites More sharing options...
Whirly Fizzle Posted October 9, 2017 Share Posted October 9, 2017 The sign into Google button works on https://stackoverflow.com/ on a MOAP however. Link to comment Share on other sites More sharing options...
Beq Janus Posted October 9, 2017 Share Posted October 9, 2017 Actually (as the aforementioned dev) reading your thread above it may well be that you are already using an alternative to OAuth. There is some information in https://auth0.com/blog/google-blocks-oauth-requests-from-embedded-browsers/ regarding alternatives. Are you getting an error code at all? I suggested whirly test another site that used google federated authentication and as per her note that worked which seems to suggest that (whether OAuth or not) this issue is likely to be implementation specific. I am not a web developer so I cannot give much guidance but if you are able to confirm that you are using one of the supported methods and give a little more details we can use that to guide further investigation. Link to comment Share on other sites More sharing options...
Vindictii Posted October 14, 2017 Author Share Posted October 14, 2017 Thanks guys. The problem does seem to be because prim's are treated as 'embedded browsers'. This explains both the login issues and some other issues stemming from certain event handlers (window.onload and the like - anything that waits for the document/window to load as opposed to an element). 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now