Skip to content

Xiaoshouyi OAuth Integration

Application Introduction

Neocrm Xiaoshouyi is an enterprise-level CRM service provider integrating new Internet technologies. Based on new Internet technologies such as AI, big data, and IoT, it creates an enterprise-level marketing-service integrated CRM, digitizing and intelligizing the entire process of enterprise-customer interaction, helping enterprises transform into truly customer-centric digital operating organizations and achieve sustainable growth in performance. Xiaoshouyi has been selected as a Gartner SFA Magic Quadrant for 6 consecutive years.

Document Description

This document mainly explains how Xiaoshouyi (client) integrates with BambooCloud IDaaS (server) through the OAuth2 protocol.

In addition to OAuth integration, Xiaoshouyi currently also supports SAML 2.0 integration for single sign-on. If Xiaoshouyi manages both CRM and PRM users internally, after OAuth protocol integration, PRM logout can redirect to the server login interface. If there is no such requirement, it is recommended to use SAML integration, which is relatively simpler to configure.

Prerequisites

  1. Have a Xiaoshouyi tenant environment
  2. Have a BambooCloud IDaaS tenant environment
  3. Have super administrator accounts for the above two environments

Integration Step Overview

  1. Register an application in BambooCloud IDaaS (authentication protocol select: OAuth)
  2. Add an authentication connector in Xiaoshouyi. Type: OAuth authentication connector
  3. Configure according to the relevant parameters provided by the BambooCloud IDaaS registered application
  4. Match and associate accounts
  5. Test login verification

Detailed Integration Steps

Register Application in BambooCloud IDaaS

Enter the BambooCloud IDaaS Enterprise Center and add the Xiaoshouyi application

Obtain the ClientId and ClientSecret parameters and record them for later use.

Create Xiaoshouyi Authentication Connector

  1. Enter the Xiaoshouyi backend settings interface.

  2. Fill in the ClientId and ClientSecret parameters obtained from BambooCloud IDaaS.

Xiaoshouyi Authentication Connector Configuration

Enter the Xiaoshouyi authentication connector configuration interface.

Custom Parameter Configuration

Configure the following parameters:

Parameter NameParameter API KeyInitial Value
response_typeresponse_type"code"
statestate"state"
grant_typegrant_type"authorization_code"

Example:

Auth Code Configuration

Basic Information

TIP

Request URL: https://{tenant-domain-address, example: domain: xx.xxx.com}/api/v1/oauth2/authorize

Request Method: GET

SP Request Stage Parameter Configuration

Storage LocationVariable NameVariable Value (select only)Variable Value Type
Request Bodyredirect_uriredirect_uriSP Parameter
Request Bodyclient_idclient_idIDP Parameter
Request BodystatestateCustom Parameter
Request Bodyresponse_typeresponse_typeCustom Parameter

Example:

IDP RESPONSE Stage Parameter Configuration

Parameter NameParameter Value Source Variable
auth_codecode

Example:

Access Token Configuration

Basic Information

TIP

Request URL: https://{tenant-domain-address, example: domain: xx.xxx.com}/api/v1/oauth2/token

Request Method: POST

SP Request Stage Parameter Configuration

Storage LocationParameter NameVariable Value (select only)Variable Value Type
Request Bodygrant_typegrant_typeCustom Parameter
Request Bodyclient_secretclient_secretIDP Parameter
Request Bodyclient_idclient_idIDP Parameter
Request Bodycodeauth_codeSystem Parameter

Example:

IDP RESPONSE Stage Parameter Configuration

Parameter NameParameter Value Source Variable
access_tokenaccess_token

Example:

Identity Federation Configuration

Basic Information

TIP

Request URL: https://{tenant-domain-address, example: domain: xx.xxx.com}/api/v1/oauth2/userinfo

Request Method: GET

SP Request Stage Parameter Configuration

Storage LocationVariable NameVariable Value (select only)Variable Value Type
Request Bodyaccess_tokenaccess_tokenSystem Parameter
Request Bodyclient_idclient_idIDP Parameter

Example:

IDP RESPONSE Stage Parameter Configuration

Parameter NameParameter Value Source Variable
identify_federationuserName

Example:

Logout Settings Configuration (Optional)

Basic Information

TIP

Request URL: https://{tenant-domain-address, example: domain: xx.xxx.com}/api/v1/logout

Request Method: GET

SP Request Stage Parameter Configuration

Storage LocationVariable NameVariable Value (select only)Variable Value Type
Request Bodyredirect_urllogout_urlSP Parameter
Request Bodyclient_idclient_idIDP Parameter

Example:

Test Verification

Enable Third-Party Authentication

Establish Associated Matching Accounts

When Xiaoshouyi personnel and BambooCloud IDaaS personnel log in through single sign-on, the matching login depends on the [Unique Identifier] attribute field of the Xiaoshouyi personnel and the [Username/Other Unique Attribute] of the BambooCloud user. Therefore, before verification, manually maintain the above fields in Xiaoshouyi.

Login Access

  1. Visit the Xiaoshouyi login homepage.

  2. Select the [BambooCloud] method to log in.

  1. Enter the BambooCloud account name and password, and click Confirm.

  1. View the login result.

Appendix

[Xiaoshouyi official OAuth protocol integration description](https://doc.xiaoshouyi.com/?code=8U1tuG0#/proMan/workplaceDetail?url=%2F%2Ftas ks%2F%E9%94%80%E5%94%AE%E6%98%93CRM_PaaS%E5%B9%B3%E5%8F%B0_% E7%B3%BB%E7%BB%9F%E5%8D%95%E7%82%B9%E7%99%BB%E5%BD%95%E9% 85%8D%E7%BD%AE_V2108.01_%E7%BB%91%E5%AE%9A_sp_%E4%B8%8E_idp_%E7 %94%A8%E6%88%B7.html&id=802&dir=output_1654767381620&time=169701647076 0&proId=undefined&checkStat=undefined)

BambooCloud IDaaS Open Platform