Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UNLOCK
fairds
Commits
8fee5984
Commit
8fee5984
authored
Jan 03, 2022
by
Jasper Koehorst
Browse files
expanded logout and user view
parent
4bf70e79
Pipeline
#35226
passed with stage
in 2 minutes and 41 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/nl/fairbydesign/views/authentication/LogoutView.java
View file @
8fee5984
...
...
@@ -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 ... ?
...
...
src/main/java/nl/fairbydesign/views/authentication/UserView.java
View file @
8fee5984
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment