Login with Google
WiLake supports login with Google accounts. By default, WiLake uses its own OAuth 2 credentials to connect to the Google API. However, if you wish, you can use your own OAuth 2 credentials so that the user sees that they are authorizing your application and not WiLake.
Create an application in Google
Section titled “Create an application in Google”To configure an integration with Google, you must create a Google Cloud project and obtain the OAuth 2 credentials. Follow these steps:
Access Google Cloud
Section titled “Access Google Cloud”-
Go to Google Cloud Console and click the
Select a projectbutton in the top navigation bar. -
Click the
New projectbutton, enter a name for the project, and click theCreatebutton. -
In the search bar type
Credentialsand click on the result that appears under “APIs and services”.
Create OAuth credentials
Section titled “Create OAuth credentials”-
Click the
Create credentialsbutton and selectOAuth client ID. -
Configure the application as follows and click the
Createbutton:- Application type: Web
- Name: WiLake Social (this name is not shown to the user)
- Authorized redirect URIs:
https://wilake.app/guest/sociallogin/callback/google
-
Copy the
Client IDandClient Secretand save them in a safe place. These values will be used to configure the integration in WiLake.
Configure the consent screen
Section titled “Configure the consent screen”-
From the same credentials console, click the
Configure consent screenbutton. -
Select the
Externaloption and click theCreatebutton. -
Fill in the required fields, such as the name and email of the support user.
-
In
Application domains, add the following domains:- Application home page:
your-domain.com
- Application home page:
-
In
Authorized domains, add the following domains:app.wilake.com
-
Click the
Save and continuebutton. -
In the
Permissionssection, add the following permissions:openid../auth/userinfo.email../auth/userinfo.profile
-
Click the
Save and continuebutton. -
In the
Summarysection, click theBack to the consolebutton. -
Send the application for review by Google.
Configure WiLake
Section titled “Configure WiLake”-
Access the WiLake administration console, go to
Management > Captive portalsand edit the portal you want to configure. -
In the
Credentialstab, enter the OAuth 2 credentials you obtained from Google under theGooglesection. -
Click the
Savebutton.