Skip to content

WPS Office/Kingsoft Docs OAuth Single Sign-On

Overview

This article describes the OAuth authentication integration configuration between Kingsoft Docs and BambooCloud IDaaS.

Authentication Configuration

WPS Configuration

  1. Log in to the WPS Management Backend, select Address Book -> SSO Login Settings, and add an OAuth 2.0 authentication source.

    (BambooCloud IDaaS also supports SAML protocol authentication integration with WPS)

  2. Configure Authorization Request.

    TIP

    Authorization page address: https://{your_domain}/api/v1/oauth2/authorize

    Authorization code parameter name: fixed value "code"

    ParameterDescription
    redirect_uriClient redirect endpoint URI. WPS default is redirect_url, please change to redirect_uri!!!
    stateAn opaque value used by the client to maintain the state between the request and callback
    client_idBambooCloud IDaaS application client_id
    scopeFixed value "get_user_info"
    response_typeFixed value "code"
  3. Configure Authorization Token Request.

    TIP

    Authorization token request address: https://{your_domain}/api/v1/oauth2/token

    Authorization token parameter extraction expression: fixed value "$.access_token"

    ParameterDescription
    codeAuthorization code
    client_idBambooCloud IDaaS application client_id
    client_secretBambooCloud IDaaS application client_secret
    grant_typeFixed value "authorization_code"
    response_typeFixed value "code"
  4. Configure User Info Request.

    TIP

    User info request address: https://{your_domain}/api/v1/oauth2/userinfo

    Third-party user ID extraction expression: based on the value of the authentication integration mapping configuration of the application in BambooCloud IDaaS

    ParameterDescription
    access_tokenTime-limited authorization token credential
  5. Authentication Configuration, obtain the single sign-on address, and save.

BambooCloud IDaaS Configuration

  1. Log in to the BambooCloud IDaaS Enterprise Center as an administrator. In the Enterprise Center, go to Resources > Applications > Pre-integrated Applications > Add Pre-integrated Application, search for WPS, and select WPS Office.

  2. For authentication configuration, fill in the callback address as https://account.wps.cn/permit/ssoafterlogin.

  3. Enter the application details, view the general information, and obtain ClientId and ClientSecret.

  4. User authorization: Authorization Management > Application Account > Add Account.

Login Verification

  1. Log in to the WPS Personal Center on the web, and select Exclusive Account SSO.

  2. Enter the enterprise code, redirect to the BambooCloud IDaaS login page, enter the authorized user credentials, and enter Kingsoft Docs.

BambooCloud IDaaS Open Platform