Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

Github

Github OpenID Setup

warning

Be mindful when configuring public OpenID providers. Any user who authenticates with the provider gains access to your Kasm Workspaces deployment. Kasm group permissions can restrict access to Workspace apps and desktops, but any user of the public authentication provider can still log in to your deployment. Use a private OpenID provider unless you intend to allow access to all users of the OpenID platform provider.

This guide walks through a basic setup allowing Github users to authenticate with your Kasm deployment

Note

Github OpenID does not support OIDC Single Logout.

Reference Docs:

Creating a Github OAuth App

  1. Login to Github and select Settings from the profile dropdown: https://github.com/settings/profile
  2. Select Developer Settings.
  3. Select OAuth Apps, then click New OAuth App.
  4. Give the application a name (e.g Kasm), enter the URL of the deployment in the Homepage URL, and the Authorization callback to be https://<deployment hostname>/api/oidc_callback.

New OAuth Application

New OAuth Application
  1. Select Register Application.
  2. On the next page note the Client ID. It will be needed for upcoming configurations.
  3. Click Generate a new client secret and note the value. It will be needed for upcoming configurations.

Client ID an Client Secret

Client ID an Client Secret

Kasm OpenID Config

  1. Log into the Kasm UI as an administrator.
  2. Select Access Management -> Authentication -> OpenID -> Add Config.
  3. Update the form with the following entries, using the Client ID and Client Secret gathered in the previous section.
PropertyValue
EnabledChecked
Display NameContinue with Github
Logo URLhttps://github.com/favicon.ico
Auto LoginUnchecked
Hostname<Empty>
DefaultChecked
Client ID<Client ID From Github OAuth App>
Client Secret<Client Secret from Github OAuth App>
Authorization URLhttps://github.com/login/oauth/authorize
Token URLhttps://github.com/login/oauth/access_token
User Info URLhttps://api.github.com/user
Scopeuser:email
Username Attributeemail
Groups Attribute<Empty>
DebugUnchecked
Redirect URLhttps://<Kasm hostname>/api/oidc_callback
OpenID Connect IssuerBlank
Logout with OIDC ProviderUnchecked
Enable OIDC SLO Frontchannel EndpointUnchecked

Kasm OIDC Configurations

Kasm OIDC Configurations
  1. Click Save to save the changes.

Github Login Test

  1. Logout of the Kasm to display the login screen. The OpenID configuration should be shown.

Login Screen

Login Screen
  1. Click Continue with Github.

  2. The user is redirected to Github. Login if necessary. The first time the user utilizes the OpenID auth, they will be prompted to accept the access requested. Select Authorize

Github Auth

Github Auth
  1. Upon compleation, the user is logged into the Kasm app.