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

Add oauth2 support for scalar

Open DenuxPlays opened this issue 2 months ago • 1 comments

Is your feature request related to a problem? Please describe.

oAuth2 works great with Swagger but in scalar I have to manually define client id and client secret every time.

Describe the solution you'd like

The same configuration parameters as swagger:

    oauth:
      client-id: financrr
      client-secret: 6K0CtYFXexS0MsuHNLYruJk8G4MsP5oZ
      use-pkce-with-authorization-code-grant: true

Describe alternatives you've considered

Just pasting id and secret in every time.

Additional context

////

DenuxPlays avatar Oct 16 '25 20:10 DenuxPlays

Related issue here: #3087

Relevant upstream PR: https://github.com/scalar/scalar/pull/7145

hanspagel avatar Oct 21 '25 10:10 hanspagel