# Custom authentication in webservices

**URL:** <https://developer.sailpoint.com/discuss/t/custom-authentication-in-webservices/8990>\
**Category:** SHF Discussion and Questions\
**Tags:** webservice-connector, sailpoint-identity-security\
**Created:** [March 7, 2023, 9:03am UTC](https://developer.sailpoint.com/discuss/t/custom-authentication-in-webservices/8990 "2023-03-07T09:03:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nadim](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@Nadim](https://developer.sailpoint.com/discuss/u/Nadim)\
**Post date:** [March 7, 2023, 9:03am UTC](https://developer.sailpoint.com/discuss/t/custom-authentication-in-webservices/8990/1 "2023-03-07T09:03:33Z")

</div>

Hello I have some questions concerning the behavior of custom authentication call in the web service connector:

1 - Is it called before every other operation or is it called once at specific interval and if the latter can I specify this interval?

2 - Once the authentication is recieved is it stored somewhere or only used in the next call and deleted right after?

For context I have created two identical calls, one with operation type “Test Connection” and another with operation type “Account aggregation” and I have logged the response of my different calls and this is the behavior I have found:

1 - When my call is a “Test Connection” the custom authentication is always called and the authentication token is correctly used

2 - When my call is an “Account aggregation” the custom authentication is rarely called and most of the time I receive and error that I do not have a valid token

---

<div class="post-metadata">

**Author:** ![smithamukundaniha](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@smithamukundaniha](https://developer.sailpoint.com/discuss/u/smithamukundaniha)\
**Post date:** [May 15, 2023, 4:19am UTC](https://developer.sailpoint.com/discuss/t/custom-authentication-in-webservices/8990/2 "2023-05-15T04:19:45Z")

</div>

I have the same questions, did you get a reply for this? Also even in test connection the token is not getting retrieved, only when I hard code it works.

---

<div class="post-metadata">

**Author:** ![ismaelmoreno1](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ismaelmoreno1/32/2756_2.png) [@ismaelmoreno1](https://developer.sailpoint.com/discuss/u/ismaelmoreno1)\
**Post date:** [May 15, 2023, 11:12am UTC](https://developer.sailpoint.com/discuss/t/custom-authentication-in-webservices/8990/3 "2023-05-15T11:12:10Z")

</div>

Hi @Nadim

Accoding Sailpoint documentation

> When Authentication Method is selected as No/Custom Authentication it means that Web Services would fetch the authentication details for all other endpoints

If access token is retrieved in the response, you should retrieve token in the following way: **“$application.-your key-$”**

You can get more information about custom authetication using this link:

[Custom Authentication (sailpoint.com)](https://documentation.sailpoint.com/connectors/webservices/help/integrating_webservices/idn_config_for_custom_authentication.html?Highlight=custom%20authentication)

---

<div class="post-metadata">

**Author:** ![Nadim](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@Nadim](https://developer.sailpoint.com/discuss/u/Nadim)\
**Post date:** [May 24, 2023, 3:05pm UTC](https://developer.sailpoint.com/discuss/t/custom-authentication-in-webservices/8990/4 "2023-05-24T15:05:26Z")

</div>

Hello,  
In our case the calls were failing because the API calls werent following the standard API response codes (200 OK, 400 BAD REQUEST etc. ). We were able to make the connector work by adding the following configuration in the additional settings tab of the connector

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/c/cb8af32eb2d635de63bc544544559b250de30389.png)

Make sure to also follow @ismaelmoreno1’s instructions

Regards,  
Nadim

---

<div class="post-metadata">

**Author:** ![Divya\_Sri\_123](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@Divya\_Sri\_123](https://developer.sailpoint.com/discuss/u/Divya_Sri_123)\
**Post date:** [June 12, 2023, 1:18pm UTC](https://developer.sailpoint.com/discuss/t/custom-authentication-in-webservices/8990/5 "2023-06-12T13:18:35Z")

</div>

Hi @ismaelmoreno1  
The document for custom authentication says not to update any sensitive information in UI.  
how to update the password information via API  
could you please provide api end point?

Thanks,  
Divya

---

<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:** [August 11, 2023, 1:18pm UTC](https://developer.sailpoint.com/discuss/t/custom-authentication-in-webservices/8990/6 "2023-08-11T13:18:48Z")

</div>

Closed on August 11, 2023, 1:18pm UTC

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