fabioformosa / quartz-manager

REST API and UI Console Manager for Quartz Scheduler. This is a Java Library & UI embeddable single page app, to control and monitor jobs scheduled with Quartz Scheduler
Apache License 2.0
237 stars 85 forks source link

Swagger UI authentication feature #44

Closed fabioformosa closed 2 years ago

fabioformosa commented 2 years ago

Set the authentication config to allow swagger-ui to authenticate itself. Currently the only way is to log in through the UI

fabioformosa commented 2 years ago

quartz-manager-starter-security enables the JWT auth. Therea are 2 possible approaches:

  1. Expose the login path to get a token and enable the basic auth using the bearer in header
  2. Enable the basic-auth in quartz-manager-starter-security
fabioformosa commented 2 years ago

I tried to use the inclusion of the spring login form by the dedicated application prop,

springdoc:
  show-login-endpoint: true

but I was not able to customize the URL. I preferred to describe an extra custom operation. I've change also the auth model from basic auth to bearer JWT token. However, if the login succeeds, all next calls go fine if the cookies-auth is enabled. I close this issue.