on 2023 Sep 20 2:17 PM
Hello experts, could you kindly lend me a hand with this inquiry? When a service key is generated in BTP (Cloud Foundry) for incoming client authentication, it produces an OAuth 2.0. The Client Id and Client Secret can be employed for basic authentication. Is there a method to disable this functionality, in essence, rendering both the Client Id and Client Secret unusable as Username and Password? I have some concerns, particularly in a production tenant. Thank you very much for your assistance, corrections, and any additional insights!
Daniel Quintero.
Request clarification before answering.
Hello Daniel,
Check the below documentation: you can do it by creating API token.
https://help.pubsub.em.services.cloud.sap/Cloud/ght_use_rest_api_authentication.htm
https://help.pubsub.em.services.cloud.sap/Cloud/ght_api_tokens.htm#Create
Thanks,
Lakshmi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel,
would it be an option for you to switch to client-certificate-based authentication?
In that case, client-secret is not generated.
Kind Regards,
Carlos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel, just as a note, in case it is not clear:
We can state that an iFlow is ALWAYS protected with OAuth.
Either WE do the OAuth-flow to fetch a JWT token.
Or we send clientid/secret via basic auth, the the CPI FWK does the OAuth flow under the hood.
I understand your concern, but I don't think that there's an option to tell the FWK to never allow basic auth requests.
On the other side, whenever you fetch a JWT token, you have to authenticate at the Authorization server (XSUAA) with basic auth as well, using clientid/secret.
CPI does not treat the clientid/secret like a user-password
Cheers,
Carlos
Hello Daniel,
As per my understanding its not possible to restrict ClientId/ClientSecret for basic authentication usage.
Regards,
Sriprasad S Bhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much for the prompt response, Sriprasad Shivaram Bhat! As I see it, SAP doesn't recommend this option for production scenarios. So, should a certificate be used instead? What I find intriguing is that the Client Id and Client Secret used for basic authentication are the same as those used to consume the token.
User | Count |
---|---|
62 | |
8 | |
7 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.