shadrix
324
2
General

Big websites have Google Login via "SmartLock", how to implement this?

Posted 6 months ago by shadrix

There are no stupid questions some say :P However I'm looking to implement this in my website.

[enter image description here]

Do you know where I can infos about this? I cannot find it anywhere. If I look at the source code you see thats an iframe:

<iframe src="https://smartlock.google.com/iframe/request?client=https%3A%2F%2Fmedium.com&amp;id=0aa5c69a970034bf7bc1a2e03b030d4042b6fd17c9e6f6e488ab3c1a9bc7578a&amp;renderMode=navPopout&amp;preloadRequest=%7B%22type%22%3A%22hint%22%2C%22options%22%3A%7B%22supportedAuthMethods%22%3A%5B%22https%3A%2F%2Faccounts.google.com%22%5D%2C%22supportedIdTokenProviders%22%3A%5B%7B%22uri%22%3A%22https%3A%2F%2Faccounts.google.com%22%2C%22clientId%22%3A%22216296035834-k1k6qe060s2tp2a2jam4ljdcms00sttg.apps.googleusercontent.com%22%7D%5D%7D%7D&amp;features=%7B%22feature%22%3A%5B%22DISPLAY_RP_TOS%22%5D%7D" style="border: none; position: fixed; z-index: 9999; top: 0px; right: 0px; width: 400px; height: 261px;"></iframe>

There is only little info about it and only for android and it's not that what I'm looking for

To test it out: Go to medium.com with Chrome and a side-popup should come.

p.s: I'm using socialite for my google login and I didn't use some added javascript for google oauth (maybe it's included there?)

Please sign in or create an account to participate in this conversation.