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

[API] Swagger not using Bearer in auth #851

Open
RFDarter opened this issue Nov 11, 2024 · 0 comments
Open

[API] Swagger not using Bearer in auth #851

RFDarter opened this issue Nov 11, 2024 · 0 comments
Labels
bug Program error or software error or software anomaly.

Comments

@RFDarter
Copy link

Describe the bug
If you try to access the api with the swagger ui access fails

{
  "code": 401,
  "message": "Unauthorized",
  "details": [
    "Missing or invalid JWT token"
  ]
}

The problem seems to be that the request header does not include Bearer before the authorization token.

curl -X 'GET' \
  'http://192.168.178.33:8080/api/v3/log?format=raw' \
  -H 'accept: application/json' \
  -H 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleGkiOjYwMCwiZXhwIjoxNzMxMzE3NTYyLCJpYXQiOjE3MzEzMTY5NjIsImlzcyI6ImRhdGFyaGVpLWNvcmUiLCJqdGkiOiIwYmI5NGVlMi0wNjUxLTQxYmEtYjg4Ni0zNjFlNjk2ZWZhOWYiLCJzdWIiOiJhZG1pbiIsInVzZWZvciI6ImFjY2VzcyJ9.sAt7G-dGkyOJKhfJCCVx6pG2gpvXDDqQ_e7LVtcRf6o'

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Business inquiries

We provide support for commercial requirements with professional support, agile software development, and consulting. If you have a commercial request, be it a bug or a feature enhancement, please contact us directly at [email protected].

@RFDarter RFDarter added the bug Program error or software error or software anomaly. label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Program error or software error or software anomaly.
Projects
None yet
Development

No branches or pull requests

2 participants
@RFDarter and others