# Custom Authentication webservice connector

**URL:** <https://developer.sailpoint.com/discuss/t/custom-authentication-webservice-connector/101523>\
**Category:** IIQ Discussion and Questions\
**Tags:** webservice-connector, identityiq, provisioning\
**Created:** [February 20, 2025, 12:43pm UTC](https://developer.sailpoint.com/discuss/t/custom-authentication-webservice-connector/101523 "2025-02-20T12:43:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradeepireddy\_123](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@pradeepireddy\_123](https://developer.sailpoint.com/discuss/u/pradeepireddy_123)\
**Post date:** [February 20, 2025, 12:43pm UTC](https://developer.sailpoint.com/discuss/t/custom-authentication-webservice-connector/101523/1 "2025-02-20T12:43:00Z")

</div>

Hi All, I’m attempting to retrieve the custom authentication token in the **Before Rule** and include it in the modified body. I used the following approach:

String accessToken = (String) appAttributes.get(“ConnectionID”);  
String customerID = (String) appAttributes.get(“CustomerID”);

However, the `customerID` value is returning as `null`. Could someone please assist me with this issue?

---

<div class="post-metadata">

**Author:** ![zeel\_sinojia](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/zeel_sinojia/32/13666_2.png) [@zeel\_sinojia](https://developer.sailpoint.com/discuss/u/zeel_sinojia)\
**Post date:** [February 20, 2025, 4:10pm UTC](https://developer.sailpoint.com/discuss/t/custom-authentication-webservice-connector/101523/2 "2025-02-20T16:10:52Z")

</div>

The response attribute mapped under Custom Authentication are not stored in the application schema. So it can’t be retrieved using _getAttributeValue_.

Instead you can refer to the CA attributes like **$application.ConnectionID$** and add it to the header or body of the operation.

---

<div class="post-metadata">

**Author:** ![pradeepireddy\_123](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@pradeepireddy\_123](https://developer.sailpoint.com/discuss/u/pradeepireddy_123)\
**Post date:** [February 24, 2025, 10:14am UTC](https://developer.sailpoint.com/discuss/t/custom-authentication-webservice-connector/101523/3 "2025-02-24T10:14:10Z")

</div>

I have resolved this using  
Map headers = requestEndPoint.getHeader();  
String connectionID = headers.get(“Authorization”);  
String customerID = headers.get(“X-Customer-ID”);

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [April 25, 2025, 10:14am UTC](https://developer.sailpoint.com/discuss/t/custom-authentication-webservice-connector/101523/4 "2025-04-25T10:14:52Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
