WeLink Single Sign-On

Single Sign-On SSO

# Description

Welink supports integration with the standard OAuth 2.0 authentication protocol. IDaaS can help achieve the following business objectives:

  • When a user opens Welink, they are redirected via the OAuth 2.0 protocol to the IDaaS login page to complete authentication using IDaaS user credentials.
  • When a user opens Welink, IDaaS facilitates the conversion from OAuth 2.0 to other protocols such as SAML or CAS, enabling integration with the enterprise's self-built authentication system. Users can then complete login authentication using credentials from the self-built authentication system.

WeLink Organization SSO Authentication Reference Documentation (opens new window)

# Authentication Configuration

# IDaaS Configuration

  1. Log in to the IDaaS Enterprise Center.

  2. Add the pre-integrated application "Welink Organization SSO Authentication".

  3. Configure application parameters.

    For the trusted domain, fill in https://api.welink.huaweicloud.com/sso/oauth2/magcallback.html.

    Under mapping configuration, add a mapping: Application attribute name accname, mapping type: Account Attribute, account attribute name: accName.

  4. Authorize application accounts.

    The account name must be consistent with the Member ID in WeLink.

  5. View the Client ID and Client Secret.

  1. Administrator logs into the WeLink Management Console (opens new window).

  2. Select Settings -> Login Authentication -> Edit Login Method: Organization SSO Authentication.

  3. Edit SSO authentication parameters.

    Parameter Description
    Application ID The ClientId of the application in IDaaS
    Application Secret The ClientSecret of the application in IDaaS
    Login Authorization URL https://IDaaS tenant domain.bccastle.com/api/v1/oauth2/authorize?client_id={CLIENTID}&redirect_uri=https://api.welink.huaweicloud.com/sso/oauth2/magcallback.html&scope=get_user_info&state={STATE}&response_type=code
    Get Token URL https://IDaaS tenant domain.bccastle.com/api/v1/oauth2/token
    Token Input Parameters grant_type=authorization_code&code={CODE}&client_id={CLIENTID}&client_secret={SECRET}&redirect_uri={REDIRECT_URI}&state={STATE}
    Token Output Parameter access_token
    Get User Info URL https://IDaaS tenant domain.bccastle.com/api/v1/oauth2/get_user_info
    Headers Parameter Authorization=Bearer {access_token}
    User Output Parameter accname
  4. Click the "Test Now" button, a pop-up window for binding a user account will appear. After clicking "Next", you will be redirected to the IDaaS authentication interface. Enter the username and password of the authorized user, and then return to view the test results.

  1. Save and make it effective.

# Login Verification

Taking the PC side as an example (the process is basically the same for mobile):