-
-
Notifications
You must be signed in to change notification settings - Fork 524
Set default clientId in springdoc #333
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
Comments
Unfortunately, there is no standard swagger-ui configuration property, but we will propose an enhancement to handle it: We will need to rely on calling the initOAuth method, which is packaged inside the swagger-ui webjars and we haven't planned to embed custom swagger-ui, as used in springfox. With the next release 1.2.27, you will be able, to use the custom swagger-ui oauth properties, and using the following prefix springdoc.swagger-ui.oauth.clientId=myClientId
springdoc.swagger-ui.oauth.clientSecret=clientSecret |
@bnasslahsen I'm using |
This feature has only been added for web-mvc. |
@bnasslahsen Ah, excellent. Thank you very much! |
is there something similar for basic auth and username/password? |
Hi!
I migrate from springfox-swagger2 library
and cant set default clientId when create OAuthFlows.
When use springfox-swagger2
I decided it like this
@bean
public SecurityConfiguration security() {
return SecurityConfigurationBuilder.builder()
.clientId("myClientIdForTest")
.clientSecret("myClientIdSecretForTest")
.build();
}
(https://github.com/springfox/springfox/blob/master/springfox-swagger-common/src/main/java/springfox/documentation/swagger/web/SecurityConfiguration.java)
How to set default clientId in springdoc?
The text was updated successfully, but these errors were encountered: