mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-2180 Web-based auth support
This commit is contained in:
@@ -145,12 +145,11 @@ public class WebAppUtils {
|
||||
}
|
||||
|
||||
public static String getRequestCookie(HttpServletRequest request, String cookieName) {
|
||||
String value = null;
|
||||
for (Cookie cookie : request.getCookies()) {
|
||||
if (cookie.getName().equals(cookieName)) {
|
||||
value = cookie.getValue();
|
||||
return cookie.getValue();
|
||||
}
|
||||
}
|
||||
return value;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="sso">
|
||||
Success
|
||||
Single sign on succeeded. Now you can close this page.
|
||||
<script>
|
||||
window.close();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user