.web.samples.whiteboard-security.9.0.18.source-code.secure.jsp Maven / Gradle / Ivy
The newest version!
<%--
Copyright 2023 OPS4J.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
Pax Web Security
Pax Web Security example (very secure area)
Pax Web Security example (secure area)
Current user: ${user} (principal class: ${principalClass})
- Keycloak user name: ${sessionScope["org.keycloak.KeycloakSecurityContext"].idToken.preferredUsername}
- Keycloak realm ID: ${pageContext.request.userPrincipal.keycloakSecurityContext.realm}
- Keycloak token string: ${pageContext.request.userPrincipal.keycloakSecurityContext.tokenString}
- Keycloak ID token string: ${pageContext.request.userPrincipal.keycloakSecurityContext.idTokenString}
In default (/
) context:
">Go to anonymous area
">Go to protected area
">Go to highly protected area
In default (/pax-web-security
) context:
">Go to anonymous area
">Go to protected area
">Go to highly protected area
">Logout from /
">Logout from /pax-web-security