Hi, this is a great library. However, it could be enhanced by supporting initOAuth Javascript method, which allows to prefill some OAuth2 configurations, which, please correct me if I am wrong, cannot be saved directly into the api specification. Namely client-id and client-secret. https://swagger.io/docs/open-source-tools/swagger-ui/usage/oauth2/
Also, I was unable to expose the redirect page for OAuth2 Implicit Flow (oauth2-redirect.html), please advise if there is already a way to do that. If there is not, my proposed solution has many drawbacks, I only implemented it for Falcon framework and it only works if the prefix url is "/". And I cannot seem to figure out, how to configure custom redirection url to the swagger ui.
For a little bit of context, I am using Keycloak as an identity provider and I am generating the swagger documentation with APISpec where I use following code to define the security and it is working fine for me with the proposed changes.
` OPENAPI_SPEC = """
Hi, this is a great library. However, it could be enhanced by supporting initOAuth Javascript method, which allows to prefill some OAuth2 configurations, which, please correct me if I am wrong, cannot be saved directly into the api specification. Namely client-id and client-secret. https://swagger.io/docs/open-source-tools/swagger-ui/usage/oauth2/ Also, I was unable to expose the redirect page for OAuth2 Implicit Flow (oauth2-redirect.html), please advise if there is already a way to do that. If there is not, my proposed solution has many drawbacks, I only implemented it for Falcon framework and it only works if the prefix url is "/". And I cannot seem to figure out, how to configure custom redirection url to the swagger ui.
For a little bit of context, I am using Keycloak as an identity provider and I am generating the swagger documentation with APISpec where I use following code to define the security and it is working fine for me with the proposed changes. ` OPENAPI_SPEC = """
Apply security globally