Skip to content

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.

To configure an integration with Google, you must create a Google Cloud project and obtain the OAuth 2 credentials. Follow these steps:

  1. Go to Google Cloud Console and click the Select a project button in the top navigation bar.

  2. Click the New project button, enter a name for the project, and click the Create button.

  3. In the search bar type Credentials and click on the result that appears under “APIs and services”.

  1. Click the Create credentials button and select OAuth client ID.

  2. Configure the application as follows and click the Create button:

    • Application type: Web
    • Name: WiLake Social (this name is not shown to the user)
    • Authorized redirect URIs: https://wilake.app/guest/sociallogin/callback/google
  3. Copy the Client ID and Client Secret and save them in a safe place. These values will be used to configure the integration in WiLake.

  1. From the same credentials console, click the Configure consent screen button.

  2. Select the External option and click the Create button.

  3. Fill in the required fields, such as the name and email of the support user.

  4. In Application domains, add the following domains:

    • Application home page: your-domain.com
  5. In Authorized domains, add the following domains:

    • app.wilake.com
  6. Click the Save and continue button.

  7. In the Permissions section, add the following permissions:

    • openid
    • ../auth/userinfo.email
    • ../auth/userinfo.profile
  8. Click the Save and continue button.

  9. In the Summary section, click the Back to the console button.

  10. Send the application for review by Google.

  1. Access the WiLake administration console, go to Management > Captive portals and edit the portal you want to configure.

  2. In the Credentials tab, enter the OAuth 2 credentials you obtained from Google under the Google section.

  3. Click the Save button.