File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
springdoc-openapi-starter-webflux-ui/src/main/java/org/springdoc/webflux/ui Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,8 @@ protected void calculateUiRootPath(StringBuilder... sbUrls) {
128128 @ Override
129129 protected void calculateOauth2RedirectUrl (UriComponentsBuilder uriComponentsBuilder ) {
130130 if (StringUtils .isBlank (swaggerUiConfig .getOauth2RedirectUrl ()) || !swaggerUiConfigParameters .isValidUrl (swaggerUiConfig .getOauth2RedirectUrl ())) {
131- this . oauthPrefix = uriComponentsBuilder .path (managementServerProperties .getBasePath () + swaggerUiConfigParameters .getUiRootPath ()).path (webJarsPrefixUrl );
132- swaggerUiConfigParameters .setOauth2RedirectUrl (this . oauthPrefix .path (getOauth2RedirectUrl ()).build ().toString ());
131+ UriComponentsBuilder oauthPrefix = uriComponentsBuilder .path (managementServerProperties .getBasePath () + swaggerUiConfigParameters .getUiRootPath ()).path (webJarsPrefixUrl );
132+ swaggerUiConfigParameters .setOauth2RedirectUrl (oauthPrefix .path (getOauth2RedirectUrl ()).build ().toString ());
133133 }
134134 }
135135
Original file line number Diff line number Diff line change @@ -49,11 +49,7 @@ public abstract class SwaggerWelcomeCommon extends AbstractSwaggerWelcome {
4949 * The Web jars prefix url.
5050 */
5151 protected String webJarsPrefixUrl ;
52-
53- /**
54- * The Oauth prefix.
55- */
56- protected UriComponentsBuilder oauthPrefix ;
52+
5753
5854 /**
5955 * Instantiates a new Abstract swagger welcome.
Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ protected void calculateUiRootPath(StringBuilder... sbUrls) {
108108 @ Override
109109 protected void calculateOauth2RedirectUrl (UriComponentsBuilder uriComponentsBuilder ) {
110110 if (StringUtils .isBlank (swaggerUiConfig .getOauth2RedirectUrl ()) || !swaggerUiConfigParameters .isValidUrl (swaggerUiConfig .getOauth2RedirectUrl ())) {
111- this . oauthPrefix = uriComponentsBuilder .path (contextPath ).path (swaggerUiConfigParameters .getUiRootPath ()).path (webJarsPrefixUrl );
112- swaggerUiConfigParameters .setOauth2RedirectUrl (this . oauthPrefix .path (getOauth2RedirectUrl ()).build ().toString ());
111+ UriComponentsBuilder oauthPrefix = uriComponentsBuilder .path (contextPath ).path (swaggerUiConfigParameters .getUiRootPath ()).path (webJarsPrefixUrl );
112+ swaggerUiConfigParameters .setOauth2RedirectUrl (oauthPrefix .path (getOauth2RedirectUrl ()).build ().toString ());
113113 }
114114 }
115115
You can’t perform that action at this time.
0 commit comments