Commit 8fee5984 authored by Jasper Koehorst's avatar Jasper Koehorst
Browse files

expanded logout and user view

parent 4bf70e79
Pipeline #35226 passed with stage
in 2 minutes and 41 seconds
......@@ -7,6 +7,8 @@ import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.PageTitle;
import com.vaadin.flow.router.Route;
import com.vaadin.flow.server.VaadinRequest;
import nl.fairbydesign.views.template.TemplateView;
import org.jboss.logging.Logger;
import javax.servlet.http.Cookie;
......@@ -14,6 +16,7 @@ import javax.servlet.http.Cookie;
@Route(value = "logout", layout = MainView.class)
@CssImport("styles/views/empty/empty-view.css")
public class LogoutView extends VerticalLayout {
public static final Logger logger = Logger.getLogger(TemplateView.class);
public LogoutView(){
com.vaadin.flow.component.Html text = new com.vaadin.flow.component.Html("<span>You are now logged out </span>");
add(text);
......@@ -30,7 +33,7 @@ public class LogoutView extends VerticalLayout {
// TODO remove cookies when available...
Cookie[] cookies = VaadinRequest.getCurrent().getCookies();
for (Cookie cookie : cookies) {
System.err.println(">>> TODO remove vaadin cookies"+cookie.getName() + " " + cookie.getValue());
logger.debug(">>> TODO remove vaadin cookies"+cookie.getName() + " " + cookie.getValue());
}
// TODO auto refresh or move to main after ... ?
......
......@@ -38,6 +38,11 @@ public class UserView extends VerticalLayout implements BeforeEnterObserver {
content += "<br>Username: " + credentials.getIrodsAccount().getUserName();
content += "<br>Zone: " + credentials.getIrodsAccount().getZone();
content += "<br>Connected at: " + credentials.getIrodsAccount().getHost();
content += "<br>Authentication scheme at: " + credentials.getAuthenticationScheme();
content += "<br>SSL negotiation policy: " + credentials.getSslNegotiationPolicy();
content += "<br>Port: " + credentials.getPort();
content += "<br>Certificate Trust Store: " + credentials.getCertificateTrustStore();
// Obtain groups
try {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment