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) {
128
128
@ Override
129
129
protected void calculateOauth2RedirectUrl (UriComponentsBuilder uriComponentsBuilder ) {
130
130
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 ());
133
133
}
134
134
}
135
135
Original file line number Diff line number Diff line change @@ -49,11 +49,7 @@ public abstract class SwaggerWelcomeCommon extends AbstractSwaggerWelcome {
49
49
* The Web jars prefix url.
50
50
*/
51
51
protected String webJarsPrefixUrl ;
52
-
53
- /**
54
- * The Oauth prefix.
55
- */
56
- protected UriComponentsBuilder oauthPrefix ;
52
+
57
53
58
54
/**
59
55
* 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) {
108
108
@ Override
109
109
protected void calculateOauth2RedirectUrl (UriComponentsBuilder uriComponentsBuilder ) {
110
110
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 ());
113
113
}
114
114
}
115
115
You can’t perform that action at this time.
0 commit comments