Web Service Connector with SAML Bearer Assertion Authentication?

Hey all!
Hope you’re having a good day.

I need to integrate a connector that uses SAML Bearer Assertion for authentications. In postman we achieve this by using 3 separated operations.
The 1st operation will retrieve an assertion code.
The 2nd operation will retrieve a token by using this assertion code we got in the before operation.
And the 3rd operation will get the list of users using this token.

When I try to configure the Web Service connector in ISC, I’m choosing OAuth 2.0 with grant type as SAML Bearer Assertion, and after filling all the parameters that I think are correct, I got an error saying

"Error: Exception occurred while generating access token: Unable to generate SAML Assertion. Reponse returned: {“errorHttpCode”:“500”,“errorMessage”:“Parameter "client_id" is required in the OAuth Request.”

This confuses me because I’m adding the client_id with its value in the OAuth Request Parameters.

Using the OOTB connector is not an option.

If anyone has any idea, please share. I’ll appreciate it.

Thanks in advance!

This is amazing! Thank you so much, really.
The only thing I’d ask is if you happen to have the after rule script. I’ve been doing a research and couldn’t find anything related to get the value from the operation and then save it in a variable that we can use later within the connector parameters.

Again, thank you!
This helped me a lot.

Best regards,
Nico.