Closed MushiTheMoshi closed 2 years ago
@MushiTheMoshi Hi, there are couple of steps we need to do if we hope to authorize API with JWT in swagger.
I created a demo at demo
Please refer to code at demo
---
gin:
- name: greeter
port: 8080
enabled: true
sw:
enabled: true
middleware:
jwt:
enabled: true
ignore:
- "/v1/login"
- "/sw"
go run main.go
Copy returned JWT token and authorize JWT
Thank you so much the detailed explanation, I will test and let you know.
Hi there,
You are awesome! it worked like a charm!
Thank you so much for the example!
I am a newbie in terms of development, I really like the tool though I am not sure how to use in a structured application like a clean or hexagonal layout, do you think you can provide a quick example of it?
Thanks in advance for the help!
Regards, Julio
Describe the bug A clear and concise description of what the bug is. Hi,
First of all, really nice work done here.
After setting up jwt middleware I am unable to acess sw even when ignore is set to /sw, how can I know jwt endpoints to get access token?
To Reproduce Steps to reproduce the behavior:
Expected behavior after ignoring /sw I should be able to access sw and retrieve endpoints to get jwt token
Desktop (please complete the following information):
Smartphone (please complete the following information):