Single Sign-On (SSO) Setup with Google Workspace
This guide provides step-by-step instructions to configure Single Sign-On (SSO) with Google Workspace in Keystash. You will create a project and enable the respective APIs in the Google Cloud Console to obtain the Client ID and Client Secret required for SSO configuration.
Note
Single Sign-On is only available on the Business plan. Please upgrade your account if you wish to use this feature.
Configure Google Cloud Console
Go to the Google Cloud Console.
- Click on the Menu
- Then click on Cloud Overview and then click Dashboard
-
Click on Create Project
-
Enter a project name, we suggest
Keystash
-
Click Create
-
Select the Project if it is not already selected.
-
Click on Go to APIs overview or click on APIs & Services on the main menu and then click on OAuth consent screen
-
On the OAuth consent screen, select Internal
-
Click Create
-
Enter
Keystash
into the App name field - Select the User support email from the dropdown
-
Upload the Keystash logo file from the Identity Provider Resources section below
-
Enter the Application home page URL from the Identity Provider Resources section below
- Enter the Privacy policy URL from the Identity Provider Resources section below
- Enter the Terms of service URL from the Identity Provider Resources section below
- Enter
keystash.io
into the Authorized domain 1 field - Enter your email address into the Developer contact information field
-
Click Save and Continue
-
On the next screen click Add or Remove Scopes
-
In the Add or Remove Scopes screen, tick the email and profile and openid scopes as shown in the picture below
-
Click Update
-
Click Save and Continue
-
Click Credentials on the left menu
-
Click Create Credentials and then click OAuth client ID
-
Select Web application as the Application type
- Enter
Keystash
into the Name field - Enter
https://app.keystash.io/sso/callback
into the Authorized redirect URIs field -
Click Create
-
Copy the Client ID and save it in a secure location. You will paste this into the Keystash SSO settings later
-
Copy the Client secret and save it in a secure location. You will paste this into the Keystash SSO settings later
Configure Keystash Single Sign-on Settings
- Navigate to Settings on the Keystash menu
- Click on Single Sign On (SSO) on the sub menu
- Toggle the Enable Single Sign On switch to activate SSO settings
- Select
Google
from the dropdown menu - Enter in the Client ID you obtained from the Google Cloud Console above
- Enter in the Client Secret you obtained from the Google Cloud Console above
- The discovery URL will automatically be set for Google Workspace to:
https://accounts.google.com/.well-known/openid-configuration
- Enter an Organisation ID for your organisation. This can be any string your decide, for example
demo-example
. Your users can use this ID to login to Keystash on the main Keystash login page. However, it is easier for your users to use the Login URL below. See Logging In for more information - The Login URL field will be automatically created based on your Organisation ID. NB: You need to provide this URL to your users to login to Keystash with Google single sign-on
-
If you would like Keystash to automatically create a user account for a new user who is attempting to login via Single Sign-on then toggle the Enable Auto User Provisioning switch to on
- You will need to select a default Role that will be assigned to the new user account
Identity Provider Resources
These are the required resources for configuring and verifying the SSO setup in Google Workspace. Copy and paste the following information into the respective fields in the Google Cloud Console.
-
Redirect URL:
https://app.keystash.io/sso/callback
-
Keystash Application Homepage:
https://www.keystash.io
-
Keystash Privacy Policy Link:
https://www.keystash.io/privacy-policy.html
-
Keystash Terms of Service Link:
https://www.keystash.io/terms-of-service.html
-
Keystash Logo Image: Click the Download button to download the Keystash logo image, which can be used in your Google Workspace configuration.
Logging In
Keystash with Google Workspace allows three main ways to login:
- Using the Login URL. This is the URL that you can provide to your users to login to Keystash with Google single sign-on. This URL is automatically generated based on your Organisation ID. For example,
https://demo-example.sso.keystash.io
-
Using the Organisation ID. This allows your users to login to Keystash on the main Keystash login page. Users will click on the Single Sign-On button and enter the Organisation ID in the field provided. For example:
demo-example
-
Simply clicking on the Sign In With Google button on the Keystash login page. Google will detect that you are attempting to login with your Google Workspace account and provide Keystash with the correct authentication details
Additional Resources
- For information on OpenID Connect, see Google's documentation on OpenID & OAuth2.