Sanjib Karmakar Posted April 19, 2023 Share Posted April 19, 2023 In my application I need to invoke a REST Service using Token for OAuth 2.0 type Authorization. I have tested the same REST service using Token for OAuth 2.0 type Authorization in PostMan application where I have added that Authorization data to the Request Header at PostMan.I got the response back from that REST Service. I have tried the same configuration in Tibco BW 5.14, but BW is showing following error<?xml version = "1.0" encoding = "UTF-8"?><ns0:RESTOutput xmlns:ns0 = "http://www.tibco.com/namespaces/tnt/plugins/json"> <StatusCode>401</StatusCode> <msg>{"detail":"Not authenticated"}</msg></ns0:RESTOutput>I have tried all possible combinations of placing Token in Tibco BW, but every time I am getting same failure response. It looks like I am missing a configuration. I am not sure.I have attached the BW REST invoking screen shots as well as REST Service invocation screen shots through PostMan for your reference.It would be really helpful if any one can share his/her suggestion to solve this issue. Link to comment Share on other sites More sharing options...
Sanjib Karmakar Posted May 11, 2023 Author Share Posted May 11, 2023 Finally found the fix for this issue.We need to use 'Authorization' as a value of OAuth2TokenName.That was the only missing part. Look at the attached image for the details. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now