Skip to content

Commit 41c131c

Browse files
author
springdoc
committed
Added support for oauth2RedirectUrl - Fixes #240
1 parent dfb562b commit 41c131c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/core/SwaggerUiConfigProperties.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ public class SwaggerUiConfigProperties {
9595
*/
9696
private List<String> supportedSubmitMethods;
9797

98+
/**
99+
* OAuth redirect URL.
100+
*/
101+
private String oauth2RedirectUrl;
102+
98103

99104
public Map<String, String> getConfigParameters() {
100105
final Map<String, String> params = new TreeMap<>();
@@ -115,6 +120,7 @@ public Map<String, String> getConfigParameters() {
115120
put("tagsSorter", tagsSorter, params);
116121
if (!CollectionUtils.isEmpty(supportedSubmitMethods))
117122
put("supportedSubmitMethods", supportedSubmitMethods.toString(), params);
123+
put("oauth2RedirectUrl", oauth2RedirectUrl, params);
118124
return params;
119125
}
120126

@@ -271,4 +277,12 @@ public List<String> getSupportedSubmitMethods() {
271277
public void setSupportedSubmitMethods(List<String> supportedSubmitMethods) {
272278
this.supportedSubmitMethods = supportedSubmitMethods;
273279
}
280+
281+
public String getOauth2RedirectUrl() {
282+
return oauth2RedirectUrl;
283+
}
284+
285+
public void setOauth2RedirectUrl(String oauth2RedirectUrl) {
286+
this.oauth2RedirectUrl = oauth2RedirectUrl;
287+
}
274288
}

0 commit comments

Comments
 (0)