Hi Team,
I’m configuring a Web Services SaaS Connector to integrate with MobileExpense (MXP). The target application uses a custom token endpoint that accepts a JSON body and returns a Bearer token. I’ve configured Custom Authentication but both Test Connection and Account Aggregation fail with a generic error.
Target Application Auth Endpoint
- URL:
POST https://auth.mobilexpense.com/Authentication/GetJsonToken - Content-Type:
application/json - Request Body:
{
"uniqueId": "Base64EncodedString==",
"key": "secret_key_value",
"authorizeSameIpOnly": false
}
- Response (200 OK):
{
"access_token": "eyJhbGciOiJodHRwOi8vd3d3Lnczb...",
"token_type": "Bearer",
"expires_in": 86399
}
This works perfectly in Postman — I get a valid token and can use it to call all MXP API endpoints successfully.
My Configuration
Connection Settings
- Authentication Type: Custom Authentication
- Base URL:
https://api-mxp.mobilexpense.com - All other fields (Username, Password, API Token, etc.) left blank
Custom Authentication HTTP Operation
General Information:
- Operation Name:
Custom Authentication - Operation Type:
Custom Authentication - CustomAuthenticationURL:
https://auth.mobilexpense.com/Authentication/GetJsonToken - HTTP Method:
POST
Header:
| Key | Value |
|---|---|
| Content-Type | application/json |
Body (Raw):
{
"uniqueId": "MjEtMTUxNC0yRk...MTUxNA==",
"key": "my_secret_key",
"authorizeSameIpOnly": false
}
Response Mapping:
| Schema Attribute | Attribute Path |
|---|---|
| accesstoken | access_token |
Note: After saving the configuration, I can see the token value automatically populated in the Attribute Path field of the Response Mapping, which suggests the Custom Authentication call itself is succeeding and the token is being retrieved.
Test Connection Operation
General Information:
- Operation Name:
Test Connection - Operation Type:
Test Connection - Context URL:
/Synchro/User/Entity/1514/noe.sandbox.ECFILDMI(confirmed working in Postman) - HTTP Method:
GET
Header:
| Key | Value |
|---|---|
| Authorization | Bearer $application.accesstoken$ |
Error
Both Test Connection and Account Aggregation fail with the same generic error:
[ConnectorError] Error (requestId: b58739e951a04d169c386685d1f02ca8)
No HTTP status code, no detailed message — just [ConnectorError] Error.
What I’ve Already Tried
- Verified credentials work in Postman — auth endpoint returns 200 with valid token, and all MXP API endpoints work with that token.
- Tried different Response Attribute names — both
access_token(with underscore) andaccesstoken(without underscore) as the Schema Attribute in the Custom Auth response mapping. - Removed quotes from Authorization header value — ensured it’s
Bearer $application.accesstoken$without surrounding quotes. - Tried with API Token auth type previously — worked fine with a hardcoded token, confirming the MXP API endpoints and response mappings are correct.
Questions
- Has anyone successfully used Custom Authentication with a JSON body on the Web Services SaaS connector (not the VA-based one)?
- Is there a known limitation with Custom Authentication on WSC SaaS that would cause this behavior? I found this community post that guided me in the configuration, but it didn’t work out
Any guidance would be greatly appreciated. Thank you!
