Google OpenID Setup
Warning
Be mindful when configuring OpenID providers that are public. Any user that can successfully authenticate with the provider will have access to your deployment of Kasm Workspaces. While access to Kasm Workspace apps and desktops can be resitricted with Kasm group permissions, any user of the public authentication provider would still be able to login to your deployment of Kasm. It is recommended to use a private OpenID provider unless your intention is to allow authentictioned access to all users of the OpenID platform provider.
This guide walks through a basic setup allowing Google users to authenticate with your Kasm deployment.
Reference Docs:
Creating a Google OAuth App
Login to the Google Developer Console: https://console.developers.google.com
Select OAuth consent screen.
Select External then click Create.
Warning
In this example, we walk through creating an integration where any Google user can auth with the Kasm app. This is ideal for a public facing deployment. Choose Internal if only user from your Google Workspaces corporate account should be allowed to authenticate.
Provide values for the App Name , User support email, and Developer Contact email.
In the Authorized Domains section, enter your deployment’s top private domain (e.g
example.com
).Click Save and Continue.
Click Add or Remove Scopes.
In the Update Selected Scopes window check
.../auth/userinfo.email
, then click Update.
Click Save and Continue.
Until the app is fully verified and published it can only be used to auth specific test accounts. Click Add Users to authorize several test google accounts.
Click Save and Continue.
In the APIs & Services menu, select Credentials.
Select Create Credentials, then OAuth client ID.
Select
Web Application
as the Application type, then give the client a name (e.gKasm
).Click Add URI in the Authorized redirect URIs section, and enter
https://<kasm deployment hostname>/api/oidc_callback
.Click Create.
17. A dialogue will display with a Client ID and Client Secret. Save these values for the next configuration steps. The JSON download will also include URLs needed for the next configuration steps.
Kasm OpenID Config
Log into the Kasm UI as an administrator.
Select Access Management -> Authentication -> OpenID -> Add Config.
Update the form with the following entries, using the Client ID and Client Secret gathered in the previous section.
Property |
Value |
Display Name |
Continue with Google |
Logo URL |
|
Enabled |
Checked |
Auto Login |
Unchecked |
Hostname |
<Empty> |
Default |
Checked |
Client ID |
<Client ID From Google OAuth App> |
Client Secret |
<Client Secret from Google OAuth App> |
Authorization URL |
|
Token URL |
|
User Info URL |
|
Scope |
|
Username Attribute |
|
Groups Attribute |
Unchecked |
Debug |
Unchecked |
Click Save to save the changes.
Google Login Test
Logout of the Kasm to display the login screen. The OpenID configuration should be shown.
Click Continue with Google.
The user is redirected to Google for auth.
Upon completion, the user is logged into the Kasm app.