Lens is now available as a TrueNAS app! 🎉 Find out more here!

Google OAuth

To enable authentication with Google OAuth on an Ondsel Lens instance, follow these steps:

Create credentials

  1. Log into the Google Cloud Console and go to your project.
  2. Go to the Credentials tab.
  3. Click on + Create credentials and select OAuth client ID.
  4. Select the Web Application type (you can follow the steps outlined in the FeatherJS tutorial).
  5. Copy and paste the Client ID and Client Secret elsewhere or keep the confirmation window open.

Enable Google OAuth

  1. Open the Lens dashboard and click on OAuth Configuration.
  2. Click on Enable Google OAuth.

Insert the credentials

  1. Insert the Client ID and Client Secret from Google Cloud Console.
  2. Copy the Redirect URI.
  3. On the credentials settings page of Google Cloud Console, click on + Add URI and insert the Redirect URI.

Save settings

On the Google OAuth settings pages, click on Save. The authentication page will now show the Sign in with Google option.

Google OAuth

Users should now be able to register and log in with their Google credentials.