You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: dqops/src/main/java/com/dqops/core/dqocloud/login/InstanceCloudLoginServiceImpl.java
+45
Original file line number
Diff line number
Diff line change
@@ -209,6 +209,51 @@ public String makeDqoLoginUrl(String returnUrl) {
209
209
}
210
210
}
211
211
212
+
/**
213
+
* Builds a url to the DQOps Cloud's logout page with the ticket granting ticket and the return url.
214
+
*
215
+
* @param returnUrl Return url.
216
+
* @return Url to the DQOps Cloud's login page to redirect to.
217
+
*/
218
+
@Override
219
+
publicStringmakeDqoLogoutUrl(StringreturnUrl) {
220
+
StringreturnBaseUrl = this.getReturnBaseUrl();
221
+
if (this.dqoInstanceConfigurationProperties.isValidateReturnBaseUrl() && !returnUrl.startsWith(returnBaseUrl)) {
222
+
thrownewDqoRuntimeException("Invalid return url. The valid return url for this DQOps instance must begin with " + returnBaseUrl +
223
+
". You can change the configuration by setting the --dqo.instance.return-base-url or setting the environment variable " +
224
+
"DQO_INSTANCE_RETURN_BASE_URL to the base url of your DQOps instance, for example --dqo.instance.return-base-url=https://dqoinstance.yourcompany.com");
0 commit comments