Manage Token Authentication for SCIM Sync

Alation Cloud Service Applies to Alation Cloud Service instances of Alation

Customer Managed Applies to customer-managed instances of Alation

Applies from version 2021.4

Alation supports token authentication when syncing user and group information over SCIM. Token authentication can be configured during SCIM setup for an Alation instance. See Configure SCIM Integration about the end-to-end configuration of SCIM sync.

Token Lifespan

In 2023.3.2 and later, SCIM the token’s expiration can be anywhere from one to six months. You can create a new token at any time, which will immediately revoke the old token.

In 2023.3.1 and earlier, SCIM authentication tokens have a lifespan of 6 months. The expiration period cannot be customized: a token lasts for 6 months and expires. After 6 months, a new token needs to be created.

You do not have to wait for the token to expire to renew it. If you require a shorter expiration period for authentication tokens, you can create a new token after the desired period of time.

Important

After renewing the token on the Alation server, update the token value in the properties of the SCIM application in your IdP.

Token Expiration Notifications

In 2023.3.2 and later, all Server Admins will be notified when the SCIM token has expired or is about to expire.

Email Notifications

Server Admins will get an email at the following times:

  • 15 days before the token expires

  • 1 day before the token expires

  • The day the token expires

  • The day after the token expires

Retrieve the Expiration Date of the Current Token

2023.3.2 and Later

Starting in 2023.3.2, the expiration date of the current token can be viewed in the Alation UI.

  1. In Alation, go to Admin Settings, then Authentication.

  2. Find the SCIM Token section. If there’s already a token, you’ll see its expiration date.

    ../../../_images/ScimToken_ExpirationDate.png

2023.3.1 and Earlier

In 2023.3.1 and earlier, you must have access to the Alation server to get the token’s expiration date.

Note

Alation Cloud Service customers can request server configuration changes through Alation Support.

To get the expiration date for the current token:

  1. Use SSH to connect to the Alation server.

  2. Enter the Alation shell using the following command:

    sudo /etc/init.d/alation shell
    
  3. Enter the Django shell:

    alation_django_shell
    
  1. In the Django shell, run:

    from rosemeta.utils.users_and_groups.configuration_utils import get_scim_bearer_token_expiry_date
    
    get_scim_bearer_token_expiry_date()
    

This will output the expiration date of the current token in UTC.

Replace an Existing Token

You can create a new token at any time, which will immediately revoke the old token.

2023.3.2 and Later

Starting in 2023.3.2, you can create a SCIM token using the Alation UI.

  1. In Alation, go to Admin Settings, then Authentication.

  2. Find the SCIM Token section. If there’s already a token, you’ll see its expiration date.

  3. To create a new token, click the dropdown to select how long the token will be valid.

  4. Click Generate Token. A popup window appears with the new token.

  5. Click Copy and save the token in a secure location. It will be required later when you configure SCIM integration on the IdP side.

    Important

    The token will never be displayed again. It is not stored in Alation. Once you close the dialog, you will not be able to access it again in Alation. If needed, you can generate a new token.

  6. Once you’ve saved the token, click Close.

2023.3.1 and Earlier

In 2023.3.1 and earlier, you must have access to the Alation server to create a new token.

Note

Alation Cloud Service customers can request server configuration changes through Alation Support.

To create a new token:

  1. Use SSH to connect to the Alation server.

  2. Enter the Alation shell using the following command:

    sudo /etc/init.d/alation shell
    
  3. Enter the Django shell:

    alation_django_shell
    
  4. Run the following code from the Django shell:

    from rosemeta.utils.users_and_groups.configuration_utils import set_scim_bearer_token
    
    set_scim_bearer_token()
    

    This sets a new SCIM authentication token on the Alation server.

Retrieve the Current Token Value

To retrieve the current token value, you must have access to the Alation server.

  1. Use SSH to connect to the Alation server.

  2. Enter the Alation shell using the following command:

    sudo /etc/init.d/alation shell
    
  3. Enter the Django shell:

    alation_django_shell
    
  4. Run the following code from the Django shell:

    from rosemeta.utils.users_and_groups.configuration_utils import get_scim_bearer_token
    
    get_scim_bearer_token()