ui.initOAuth should support specifying configuration per-security definition. Specifically client_id and client_secret values.
My API has multiple security definitions available. But the Swagger UI has a different ClientID for each one (being that they are different providers). I am currently unable to use both without removing the client_id and specifying it manually in the textbox during authenticaiton.
+1
same here
I am trying to use swagger to access my API which supports several Auth Providers and client_id for swagger application is different
currently there is no way to specify separate client_id for each auth provider
Me too! I have one security definition for my oauth2 setup, which accepts all 4 oauth 2 grant types/flows. However, each flow has a differently configured client! It would be good if the initialisation function take both which definition you are referring to, and if an oauth 2 type, which flow we were talking about.
bump. any updates on this?
Another bump, might make a PR for supporting this
Folks: per the Swagger Contribution Guide, please refrain from making comments that only serve to bump the issue or indicate interest — use Reactions to vote for issues instead. Thanks!
Has anybody found a workaround for this maybe? Struggling with this issue since we added a second auth flow to our API.
Most helpful comment
Me too! I have one security definition for my oauth2 setup, which accepts all 4 oauth 2 grant types/flows. However, each flow has a differently configured client! It would be good if the initialisation function take both which definition you are referring to, and if an oauth 2 type, which flow we were talking about.