docusaurus-openapi icon indicating copy to clipboard operation
docusaurus-openapi copied to clipboard

Add Oauth2 authentication support

Open jcolladosp opened this issue 3 years ago • 2 comments

Hi, I'm using oauth2 authentication flow in my OpenApi spec:

"securitySchemes" : {
      "BearerToken" : {
        "flows" : {
          "implicit" : {
            "authorizationUrl" : "XXXX",
            "scopes" : {
              "openid" : "XXX"
            }
          }
        },
        "type" : "oauth2",
        "x-client-id" : "XXX"
      },

Is it possible to make it compatible with docusuarus-openapi? Right now I see this when I try to log in: image There's no way to log in and get the token. You can check Rapidoc which is a similar project and it's compatible with that.

Thanks

jcolladosp avatar Sep 08 '22 14:09 jcolladosp

Like the author, I'm wondering if there is any chance that OAuth2 support, specifically the client_credentials flow will be added in the near future? I saw a reference to it in #54

Thanks in advance - this is an amazing project!

pogzyb avatar Apr 16 '23 00:04 pogzyb

I’m open to pull requests, but I don’t have much time to work on the feature myself

bourdakos1 avatar Apr 16 '23 23:04 bourdakos1