53 CacheControl cacheControl;
54 if (version != null) {
55 if (!version.equals(Version.RESOURCES_VERSION)) {
56 return Response.status(Response.Status.NOT_FOUND).build();
58 cacheControl = CacheControlUtil.getDefaultCacheControl();
60 cacheControl = CacheControlUtil.noCache();
63 InputStream resource = getClass().getClassLoader().getResourceAsStream(
"login-status-iframe.html");
64 if (resource != null) {
65 P3PHelper.addP3PHeader(
session);
66 return Response.ok(resource).cacheControl(cacheControl).build();
68 return Response.status(Response.Status.NOT_FOUND).build();
KeycloakSession session
Definition: LoginStatusIframeEndpoint.java:48