# Web service connection fails invalid client error

**URL:** <https://developer.sailpoint.com/discuss/t/web-service-connection-fails-invalid-client-error/111375>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud\
**Created:** [April 14, 2025, 11:21am UTC](https://developer.sailpoint.com/discuss/t/web-service-connection-fails-invalid-client-error/111375 "2025-04-14T11:21:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![rvemula](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@rvemula](https://developer.sailpoint.com/discuss/u/rvemula)\
**Post date:** [April 14, 2025, 11:21am UTC](https://developer.sailpoint.com/discuss/t/web-service-connection-fails-invalid-client-error/111375/1 "2025-04-14T11:21:26Z")

</div>

SailPoint \> ISC

I am tryng to create web service based source connection (with VA), getting invalid client errors (unable to generate token).  
Both custom authentication, client credentials options tried and it fails.

It works through Bruno (similar to postman) api client with OAuth2 client\_credentials or password grant type.

---

<div class="post-metadata">

**Author:** ![pavya](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/pavya/32/23397_2.png) [@pavya](https://developer.sailpoint.com/discuss/u/pavya)\
**Post date:** [April 14, 2025, 11:29am UTC](https://developer.sailpoint.com/discuss/t/web-service-connection-fails-invalid-client-error/111375/2 "2025-04-14T11:29:03Z")

</div>

Hi @rvemula , you can see this [topic](https://developer.sailpoint.com/discuss/t/help-needed-web-service-saas-connector-setup-required-endpoints/105165) and get help . Also check for configurations you done.  
Thank you.

---

<div class="post-metadata">

**Author:** ![rvemula](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@rvemula](https://developer.sailpoint.com/discuss/u/rvemula)\
**Post date:** [April 14, 2025, 12:28pm UTC](https://developer.sailpoint.com/discuss/t/web-service-connection-fails-invalid-client-error/111375/3 "2025-04-14T12:28:05Z")

</div>

Hi Pravin

Thank you for response.

It is basic authentication used from the topic you have shared. I need steps for using oauth2 \> client credentials and custom authentication

---

<div class="post-metadata">

**Author:** ![Abhishek\_1995](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Abhishek\_1995](https://developer.sailpoint.com/discuss/u/Abhishek_1995)\
**Post date:** [April 14, 2025, 12:32pm UTC](https://developer.sailpoint.com/discuss/t/web-service-connection-fails-invalid-client-error/111375/4 "2025-04-14T12:32:31Z")

</div>

Hi @rvemula,

If you have username and password please try with Basic Authentication Type.  
If still you are facing the issue i think you can write the rule to generate the token.  
Thank You!

---

<div class="post-metadata">

**Author:** ![chaithu979](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@chaithu979](https://developer.sailpoint.com/discuss/u/chaithu979)\
**Post date:** [April 14, 2025, 12:53pm UTC](https://developer.sailpoint.com/discuss/t/web-service-connection-fails-invalid-client-error/111375/5 "2025-04-14T12:53:51Z")

</div>

Hi ramesh use custom authentication and place your url only there and go to http operations and select test connection give url and client id and seceret code and do test connection your connection will be successfull

---

<div class="post-metadata">

**Author:** ![rvemula](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@rvemula](https://developer.sailpoint.com/discuss/u/rvemula)\
**Post date:** [April 14, 2025, 1:22pm UTC](https://developer.sailpoint.com/discuss/t/web-service-connection-fails-invalid-client-error/111375/6 "2025-04-14T13:22:54Z")

</div>

Message: 400 : Bad Request : {“error”:“invalid\_request”,“error\_description”:“grant\_type is required for issuance”}, HTTP Error Code: 400

I have added grant\_type and same error after I saved and tested

---

<div class="post-metadata">

**Author:** ![gmilunich](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/gmilunich/32/8431_2.png) [@gmilunich](https://developer.sailpoint.com/discuss/u/gmilunich)\
**Post date:** [April 14, 2025, 7:17pm UTC](https://developer.sailpoint.com/discuss/t/web-service-connection-fails-invalid-client-error/111375/7 "2025-04-14T19:17:36Z")

</div>

> [@rvemula](#):
>
> I have added grant\_type and same error after I saved and tested

For clarity, you have tried both “grant\_type = Password” and “grant\_type = Client Credentials” along with their respective credential values, and you received that same error?

Since I am unfamiliar with Bruno, I would like to ask a couple questions about how your working set up is there:

1. Did you need to configure anything other then the grant\_type and the Client Credentials there to get it working?
2. Are there any scripts or Parameters that Bruno inserts automatically that might be missing from SailPoint?
3. have you configured the same request end point in Bruno and SailPoint? (This is to verify you are debugging the same thing.)

Looking at the Documentation ([OAuth 2.0 Authentication](https://documentation.sailpoint.com/connectors/webservices/help/integrating_webservices/oauth_2.0_authentication.html)) for the connector, it looks like it also allow for Headers to be added or excluded. Do you have any custom headers that are needed?

Lastly, you mention that you need steps for custom Authentication. Have you tried setting it up based on the documentation for the connector? Found here: [Custom Authentication](https://documentation.sailpoint.com/connectors/webservices/help/integrating_webservices/idn_config_for_custom_authentication.html)

If so, what did you try there, and what were the results?

This reply likely won’t help solve the issue, but it may help you get better replies from others.

---

<div class="post-metadata">

**Author:** ![rvemula](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@rvemula](https://developer.sailpoint.com/discuss/u/rvemula)\
**Post date:** [April 15, 2025, 9:58am UTC](https://developer.sailpoint.com/discuss/t/web-service-connection-fails-invalid-client-error/111375/8 "2025-04-15T09:58:05Z")

</div>

Thank you all for replies and suggestions.

We were able to fix this issue, steps followed are:

1. Selected Authentication type as custom authentication in connection settings. Filled user name, password, baseURL, client id, secret

2. Added custom authentication in http operations, provided token url. In body Raw settings, as per below screenshot.

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/5/d/5d4d013fb4d1feaa224b697d35c5d1ed66e71a73.png)

---

<div class="post-metadata">

**Author:** ![chaithu979](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@chaithu979](https://developer.sailpoint.com/discuss/u/chaithu979)\
**Post date:** [April 16, 2025, 9:18am UTC](https://developer.sailpoint.com/discuss/t/web-service-connection-fails-invalid-client-error/111375/9 "2025-04-16T09:18:59Z")

</div>

ok ramesh sounds good

---

<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:** [June 15, 2025, 9:19am UTC](https://developer.sailpoint.com/discuss/t/web-service-connection-fails-invalid-client-error/111375/10 "2025-06-15T09:19:18Z")

</div>

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