Divya Kudipudi Posted February 24, 2022 Share Posted February 24, 2022 Hi, I'm working with JWT bearer Token for the first time.Can anybody please help me,how to configure TIBCO BW6 to get bearer token authorization in swagger Link to comment Share on other sites More sharing options...
Emmanuel Marchiset 2 Posted March 2, 2022 Share Posted March 2, 2022 Hi It is my understanding BusinessWorks doesn't have features to generate or verify JWT Token. You would have to implement this in Java or possibly use a REST API exposed by a dedicated component. I would recommend to have a look to this introduction : https://jwt.io/introduction Link to comment Share on other sites More sharing options...
Divya Kudipudi Posted March 3, 2022 Author Share Posted March 3, 2022 Hi Emmanuel, I have already configured the JWT library in my studio and was able to validate the JWT token.My doubt is how can we do the implementation to display bearer token in the headers in swagger inorder to validate the Azure JWT Token.like the following.Thank you in advance. Link to comment Share on other sites More sharing options...
Emmanuel Marchiset 2 Posted March 4, 2022 Share Posted March 4, 2022 Hi, From the https://jwt.io/introduction page I understand that the JWT token has to be managed in the Authentication HTTP Header using the Bearer schema. I see also the Open API 3.0 documentation has a section on this : https://swagger.io/docs/specification/authentication/bearer-authentication/ I'am not sure if this is possible to do the same in Swagger 2.0. If Open API 3.0 has to be used this is supported by BW 6.7 and higher version. On the other hand I think it should be possible to manage the HTTP Authentication header even if not defined in the Swagger file but it would appear as 'undocumented' to the applications using this swagger file. 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