All Products
Search
Document Center

AI Coding Assistant Lingma:CAS integration

Last Updated:Apr 03, 2025

CAS (CAS2.0/CAS3.0) integration allows you to connect CAS authentication services to enable single sign-on (SSO).

Appicable editions

Enterprise Dedicated

Create users outside the sync scope

Site administrators can manage CAS integration under Enterprise Settings > Identity Providers. To create users not included in CAS, select Support for built-in users: You can create users outside the sync scope.

image

Configure CAS

Step 1: Configure CAS connection

To connect AI Coding Assistant Lingma (Lingma) service provider (SP) with the CAS identity provider (IdP) of your enterprise, enter the following information:

  • CAS Logon Endpoint

  • CAS Logoff Endpoint

  • Service Ticket Validation Endpoint

imageClick Next once you have finished filling in all the fields.

Step 2: Configure user sync

System will link accounts with any of the following matching attribute across CAS and AI Coding Assistant Lingma:

  • Link Accounts with Same Email

  • Link Accounts with Same Username

  • Link Accounts with Same Mobile Number

  • Link Accounts with Employee ID

Ensure the uniqueness and existence of the attribute, as Lingma will perform one-to-one account matching based on it. The following picture explains the procedure of linking accounts.

image

Next, fill in the fields. Lingma will link accounts based on the information you have entered.

image

Step 3: Enable single sign-on

By default, the single sign-on feature is not enabled. Once it is enabled, you can customize the following CAS single sign-on settings:

  • Configure the webhook address of Lingma in CAS Client.

  • Update the CAS client name and icon. Lingma will display the updates accordingly.

  • Configure advanced settings:

    • Disabled by default: Lingma account creation is not allowed when you log on to Lingma with CAS account that does not have a linked Lingma account.

    • Enabled: Allows you to create a Lingma account when you log on to Lingma with CAS account that does not have a linked Lingma account. The created Lingma account will automatically be linked to the CAS account.

image

You can also enable Single Sign-on later from the CAS Identity Providers page by clicking Edit Settings.

Log on to Lingma through CAS

When Single Sign-on is enabled, the CAS logon option will appear on the Lingma logon page. Select CAS and you'll be redirected to the logon page where you can log on Lingma with CAS account.

Log off from Lingma

Logging off from Lingma will cause logging off from CAS.

Modify CAS configuration

On the Identity Providers page, click View Details to enter CAS configuration page. The View/Edit Settings option is available. Select the option to update the attribute mapping. Other configuration details cannot be changed.

Disable single sign-on service

You can disable single sign-on on Identity Providers page by clicking Edit Settings:

  • The link between Lingma and CAS accounts will remain intact.

  • Logging on to Lingma via CAS accounts will no longer be supported, but you can use Lingma account to log on.

Remove CAS integration

To remove CAS integration, click Remove Integration on the Identity Providers page. Once removed:

  • The link between Lingma and CAS accounts will be removed.

  • Logging on to Lingma via CAS will not be supported, but you can use Lingma account to log on.