cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Change parameters name to obtain token

AbrahamR
Explorer
0 Kudos
691

Hello, I have a question, is it possible to change the names of the parameters that are used to obtain the token in sap cpi ?

I have a client that uses the parameters "user" and "pass", but cpi gives me the parameters "client_id" and "client_secret".

Do you know any way to do this name exchange or use api management to modify the received parameters?

Regards

Accepted Solutions (1)

Accepted Solutions (1)

AbrahamR
Explorer
0 Kudos

If anyone has the same problem, I solved it as follows:

Create an api that internally consumes an iflow, that api set it to not need authorization. Then when calling the iflow it consumes the endpoint to obtain the token, to this the parameters are sent with the name desired by the client, internally converted to "client_id" and "client_secret". and that's it.

Blogs used:

https://sapzero2hero.com/2023/01/03/sap-cpi-working-with-policy-in-sap-api-management-part-01/

https://sapzero2hero.com/2022/05/12/sap-cpi-how-to-call-external-rest-api-with-access-token-and-csrf...

Answers (0)