Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use Google Sign-in without Javascript?

I have an application where I'd been asked to support Google sign-in. Something we've tried to do since the beginning was not require javascript for any important functions. Is it possible to perform Google Sign-in without requiring Javascript?

I've read some of the guides such as https://developers.google.com/identity/sign-in/web/sign-in and https://developers.google.com/identity/sign-in/web/backend-auth, but they all seem to have a javascript component involved.

For example, can we use only links and redirects, etc. to accomplish a Google-based authentication, along with some server-side verification?

like image 570
Christopher Schultz Avatar asked Mar 09 '18 16:03

Christopher Schultz


1 Answers

I think what you want to do is described in the OAuth 2.0 for Server-side Web Apps documentation. Several of the sections in that doc have tabs with language specific examples and there is also an HTTP/REST tab that shows how to generically use Google's OAuth URls.

You will also want to follow Google's sign-in branding guidelines.

like image 105
Jim Breen Avatar answered Oct 13 '22 00:10

Jim Breen