You can allow users to log in to Haiilo with their Google Workspace credentials. To enable the login, you need to complete steps both in the Google and Haiilo Administration.
Generate Client ID and Secret in Google
You need super admin rights in your Google Workspace account to generate and obtain the required Client ID and Secret.
Create a project
- Log in to the Google Cloud Platform.
- Go to Dashboard
- Select Create project or select your existing project > New project
- Enter a name for your project
- Select Create
Create an OAuth consent screen
- In the newly created project, select APIs & Services > OAuth Consent screen
- In User type, select Internal (only for your organization)
- Select Create
-
Under App information, enter:
- App name
- User support email
- App logo
- Under Authorized domains, add your Haiilo platform domain, e.g., subdomain.haiilo.app
- Under Developer contact information, enter a contact email at your company, e.g., for your IT department.
- Select Save and continue.
- Under Add or remove scopes, select:
/auth/userinfo.email
/auth/userinfo.profile
openid
- Select Update > Save and continue
Generate Client ID and Secret
- Select Credentials from the left menu
- Select Create credentials > OAuth client ID
- Under Application type, select Web application
- Enter a name for your client
- Under Authorized JavaScript origins, select Add URI.
- Add all possible URLs at which your platform can be reached, e.g., subdomain.haiilo.app
- Select Create
- Copy the Client ID and Client Secret
Keep the browser tab for Google Admin open, so you can add the request URL after setting up the connection in Haiilo.
Set up a new authentication provider in Haiilo
You need to have "Manage authentication providers" permission to set up an authentication provider in Haiilo.
- In Haiilo, go to Administration > Authentication
- Select Create authentication provider
- Enter a name. The name is displayed to users on the login screen after "Authenticate with".
- Select type OpenID Connect
- Check Active. You can also leave it unactivated for now and activate it only later when the setup is fully completed.
- Decide if you want to use automatic login, which automatically redirects to the identity provider after 3 seconds.
- Decide whether this authentication provider sends session emails for new logins.
- Select a preset:
- Google IdP: Select if you're only using the basic Google integration features
- Google IdP + Integration: Select if you're using the basic and add-on Google integration features. The setup instructions for using the add-on features can be found in the Activating the Google add-on features article.
- Input the Client ID that you copied from the Google Administration
- Input the Client Secret that you copied from the Google Administration
- We recommend keeping the preset fields untouched.
- Select Save to create the authentication provider
- Select Edit on the newly created provider
- Copy the Redirect URL that appears at the bottom of the setup page
Update Redirect URL in Google
After configuring the authentication provider in Haiilo, you can add the redirect URL in the Google Administration.
- Under Authorized redirect URIs, paste the redirect URL from Haiilo
- Select Create