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.
Version: 1.18.1

Microsoft

Microsoft (Public) 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 Microsoft users to authenticate with your Kasm deployment.

Reference Docs:

Creating a Microsoft OAuth App

  1. Login to the Microsoft Azure Portal: https://portal.azure.com/
  2. Select Azure Active Directory.

Azure Active Directory

Azure Active Directory
  1. Select App Registrations.

App Registration

App Registration
  1. Select New Registration.
  2. Give the app a Name (e.g Kasm).
  3. In the Supported account types select Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox).
warning

In this example, we walk through creating an integration where any Microsoft user can auth with the Kasm app. This is ideal for a public facing deployment. Other options are available for single-tenant and multi-tenant configurations.

Register App

Register App
  1. On the next page, the Application (client) ID is shown, save this value as the Client ID to be used in the next section.
  2. Select Add a certificate or secret next to Client credentials.

Client Credentials

Client Credentials
  1. Select the Client secrets tab, then slick New client secret.
  2. Enter a description and expiration then click Add.
  3. The credentials are shown, save the Value as the Client Secret to be used in the next section.

Client Secret

Client Secret
  1. Select Token configuration.

  2. Select Add Optional Claim

  3. Under Token Type select ID, then check the box for sid. Click Add.

:align: center
**SID Claim**
  1. Select Authentication

  2. In Front-channel Logout URL, provide the Kasm /api/oidc_frontchannel_logout endpoint as shown. Click Save.

Front-channel Logout URL

Front-channel Logout URL

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 Microsoft
Logo URLhttps://www.microsoft.com/favicon.ico
Auto LoginUnchecked
Hostname<Empty>
DefaultChecked
Client ID<Client ID From Microsoft OAuth App>
Client Secret<Client Secret from Microsoft OAuth App>
Authorization URLhttps://login.microsoftonline.com/common/oauth2/v2.0/authorize
Token URLhttps://login.microsoftonline.com/common/oauth2/v2.0/token
User Info URLhttps://graph.microsoft.com/oidc/userinfo
Scopeopenid email profile
Username Attributeemail
Groups AttributeUnchecked
DebugUnchecked
Redirect URLhttps://<Kasm hostname>/api/oidc_callback
OpenID Connect Issuerhttps://login.microsoftonline.com/common/v2.0
Logout with OIDC ProviderChecked
Enable OIDC SLO Frontchannel EndpointChecked

Kasm OIDC Configurations

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

Microsoft 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 Microsoft
  2. The user is redirected to Microsoft for auth.

Microsoft Auth

Microsoft Auth
  1. Upon completion, the user is logged into the Kasm app.