on 02-11-2024 3:55 PM
Dear ,
I am getting an Internal Server Error when trying to consume a SAP BTP Destination service in SAPUI5 application in my trial account.
Below is the destination one.
and the service is returning 200 OK when checking the connection.
Please help me ..
Hi @Raghu_150,
Do you have any roles defined for the service in question? It might be the case that you are able to connect to the service, but when your service checks for a valid user it doesn't get it. This is due to the fact the Client Credentials flow doesn't carry a real user that you can assign role to it. Instead, this is going to give you a platform/technical user - for which you cannot assign any roles. Therefore, the system may throw you a 500 error when it tries to check for authorizations.
Client Credentials OAuth2 Flow is for API usage - not suited to propagate users between Front-End and backing services. For that scenario, you should consider the OAuth2JWTBearer which will propagate the user obtained by the Front-End (usually SAP AppRouter) to your service defined in CAP. Keep in mind that this will be tue only if you are on the same subaccount. If you are crossing the subaccount boundaries, you will have to rely on the OAth2SAMLBearer authentication flow - just as long as both subaccounts have the same IdP registered.
Best regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.