Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://demo.thingsboard.io/swagger-ui.html is not working due to 'X-Authorization' header. #66

Closed
akashtalole opened this issue Mar 8, 2017 · 2 comments

Comments

@akashtalole
Copy link

when "token":"$YOUR_JWT_TOKEN" is passed in Authorize section, but when api call is happen Bearer is not present in request headers.

follwing is the curl call generated by swagger
curl -X GET --header 'Accept: application/json' --header 'X-Authorization: $YOUR_JWT_TOKEN' 'https://demo.thingsboard.io:443/api/tenant/devices?deviceName=30'

When Bearer is given it works as follows
curl -X GET --header 'Accept: application/json' --header 'X-Authorization: Bearer $YOUR_JWT_TOKEN' 'https://demo.thingsboard.io:443/api/tenant/devices?deviceName=30'

So why swagger is not appending "Bearer" in api call.

@ashvayka
Copy link
Member

ashvayka commented Mar 8, 2017

@akashtalole This is a good questions, but probably to swagger and not thingsboard team. We will review what can be done to simplify the usage.

@akashtalole
Copy link
Author

PR OAI/OpenAPI-Specification#807 seems to be resolved in swagger openapi .

vzikratyi-tb pushed a commit to vzikratyi-tb/thingsboard that referenced this issue Jul 31, 2020
deaflynx pushed a commit to deaflynx/thingsboard that referenced this issue Dec 21, 2020
Develop/2.6 edge fix import rule chains, added button, locale for edge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants