2016-06-22 17:36:43 +00:00
|
|
|
<%@ page import="org.keycloak.common.util.KeycloakUriBuilder" %>
|
|
|
|
<%@ page import="org.keycloak.constants.ServiceUrlConstants" %>
|
|
|
|
<%
|
|
|
|
String scheme = request.getScheme();
|
|
|
|
String host = request.getServerName();
|
|
|
|
int port = request.getServerPort();
|
|
|
|
String contextPath = request.getContextPath();
|
|
|
|
String redirectUri = scheme + "://" + host + ":" + port + contextPath;
|
|
|
|
%>
|
2016-07-29 15:42:53 +00:00
|
|
|
<h2>Click here <a href="<%= KeycloakUriBuilder.fromUri("http://localhost:8080/auth").path(ServiceUrlConstants.TOKEN_SERVICE_LOGOUT_PATH)
|
|
|
|
.queryParam("redirect_uri", redirectUri).build("servlet-authz").toString()%>">Sign Out</a></h2>
|