parent
8ea3f30d82
commit
ded52c6228
7 changed files with 6 additions and 7 deletions
|
@ -30,9 +30,6 @@
|
|||
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>static</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>dist</directory>
|
||||
</resource>
|
||||
|
|
|
@ -15,11 +15,13 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.keycloak.services.util;
|
||||
package org.keycloak.protocol.oidc.endpoints;
|
||||
|
||||
import org.keycloak.common.Version;
|
||||
import org.keycloak.headers.SecurityHeadersProvider;
|
||||
import org.keycloak.models.KeycloakSession;
|
||||
import org.keycloak.services.util.CacheControlUtil;
|
||||
import org.keycloak.services.util.P3PHelper;
|
||||
|
||||
import javax.ws.rs.core.CacheControl;
|
||||
import javax.ws.rs.core.Response;
|
||||
|
@ -37,7 +39,7 @@ public class IframeUtil {
|
|||
cacheControl = CacheControlUtil.noCache();
|
||||
}
|
||||
|
||||
InputStream resource = IframeUtil.class.getClassLoader().getResourceAsStream(fileName);
|
||||
InputStream resource = IframeUtil.class.getResourceAsStream(fileName);
|
||||
if (resource != null) {
|
||||
P3PHelper.addP3PHeader();
|
||||
session.getProvider(SecurityHeadersProvider.class).options().allowAnyFrameAncestor();
|
|
@ -33,7 +33,7 @@ import javax.ws.rs.core.Response;
|
|||
import javax.ws.rs.core.UriInfo;
|
||||
import java.util.Set;
|
||||
|
||||
import static org.keycloak.services.util.IframeUtil.returnIframeFromResources;
|
||||
import static org.keycloak.protocol.oidc.endpoints.IframeUtil.returnIframeFromResources;
|
||||
|
||||
/**
|
||||
* @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a>
|
||||
|
|
|
@ -27,7 +27,7 @@ import javax.ws.rs.QueryParam;
|
|||
import javax.ws.rs.core.Context;
|
||||
import javax.ws.rs.core.Response;
|
||||
|
||||
import static org.keycloak.services.util.IframeUtil.returnIframeFromResources;
|
||||
import static org.keycloak.protocol.oidc.endpoints.IframeUtil.returnIframeFromResources;
|
||||
|
||||
/**
|
||||
* @author Vaclav Muzikar <vmuzikar@redhat.com>
|
||||
|
|
Loading…
Reference in a new issue