Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth configuration gets ignored when clientSecret is an empty string #6

Open
nlochschmidt opened this issue Sep 4, 2018 · 0 comments

Comments

@nlochschmidt
Copy link

Because the empty string is a falsey value in JavaScript and the clientSecret is checked in https://github.com/springfox/springfox-swagger-ui-rfc6570/blob/master/src/web/js/springfox.js#L70, the OAuth configuration is ignored when no clientSecret is provided.

This has already been fixed in https://github.com/springfox/springfox (see springfox/springfox#1592)

In my case the OAuth Provider (Keycloak Server) simply ignores client secrets for non-confidential clients so I can put in a random clientSecret as a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant