Login with Google

Assign a domain name to the spotipo server

Spotipo must be hosted on a server accessible via domain name.

Guest must be redirected to landing page using domain name (FQDN) not via IP address.

Pre-Authorize Google IPs

Guest must be able to access Google without logging in for google-login to work.

Please add following IPs to the Pre-Authorized list in Unifi controller

64.233.160.0/19
66.249.64.0/19
72.14.192.0/18
209.85.128.0/17
66.102.0.0/20
74.125.0.0/16
64.18.0.0/20
207.126.144.0/20
173.194.0.0/16
216.58.192.0/19
108.177.8.0/21
172.217.0.0/19
108.177.96.0/21


Create a Google APIs Console project

Go to Google API Console and create a new project.

�Select and enable Google+ API
�Create Credentials for API

Select OAuth consent screen tab and give relevant details

Select OAuth client id from dropdown of ‘create credentials’ button.

Select Web application as application type

Client ID and Client secret will be shown on a popup upon creation of a client.

If you miss to note down the client id and secret, click on the client name to see credentials.

Note down client id and client secret. You need to provide these two while configuring Google Login in Spotipo.

Enable Google Login in Spotipo

Go to Settings-> Authentication Methods and enable Google Login. Make sure to configure Google client_id and client_secret correctly.


How did we do?