Open sir4ur0n opened 1 year ago
The hardcoded client ID does seem to be a bug. I haven't used jensoleg. I wouldn't oppose a clean patch that adds the support, but I would have a hard time reviewing it, as I don't know much about OAuth. So it would have to be properly documented and tested.
According to https://swagger.io/docs/open-source-tools/swagger-ui/usage/oauth2/ it's possible to pass some default values to
initOAuth
, e.g.clientId
, so that users do not have to type it every time they log in.Is this possible with any of the Swagger UIs provided by this package?
servant-swagger-ui
: I don't find any occurrence ofclientId
,client_id
orinitOAuth
servant-swagger-ui-jensoleg
: I do find a call toinitOAuth
, however the values seem hardcoded? Including theclientId: "ffe7748a-3a3f-4860-a02a-42ab08e4fde2"
:thinking:`servant-swagger-ui-redoc
: I don't find any occurrence ofclientId
,client_id
orinitOAuth
If not currently possible: what do you think about adding support for that?