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

Authorization issue with Oauth2 Client Credentials in BTP

smilemiwa
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,048

Dear all,

I am currently configuring an Iflow Integration in BTP getting Data from a new application via HTTP GET, I used the OAuth2 Client Credentials and tested them with POSTMAN.

With Postman I get the authorization token and get the token information and can use them for accessing the data. In my Iflow in BTP I do the same, but I got the following error message after deploying them in the BTP.

java.lang.NullPointerException: while trying to invoke the method com.sap.it.nm.types.security.CredentialTraits.getTagsAsMap() of a null object loaded from local variable 'credentialTraits'

Does anyone of you have an idea what is the issue?

I would be very grateful for receiving answers

Best Regards

Accepted Solutions (0)

Answers (3)

Answers (3)

PJanik
Associate
Associate

Hi,

in my case the cause of the error was missing credentials

I had referenced

SF_OAUTH_TEST in the iFlow but in the Security Material I had

SF_OAUTH2_TEST configured, and SF_OAUTH_TEST

HTH

Peter

Berg_Song
Participant
0 Kudos

Hi, I also have the issue, but as PJanik said, the reason is that Credential Name in Connector and Security Material is not the same.

 

smilemiwa
Product and Topic Expert
Product and Topic Expert
0 Kudos

Unfortunatley no.