haskell-servant / servant-swagger-ui

Provide embedded swagger UI for servant and swagger
46 stars 34 forks source link

Pass options to `initOAuth` #109

Open sir4ur0n opened 1 year ago

sir4ur0n commented 1 year ago

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?

If not currently possible: what do you think about adding support for that?

ysangkok commented 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.