in Education by
I have a fairly similar docker-compose file to what is officially provided namely version: '3' volumes: mysql_data: driver: local services: mysql: image: mysql:5.7 volumes: - mysql_data:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: keycloak MYSQL_USER: keycloak MYSQL_PASSWORD: mypassword keycloak: image: jboss/keycloak environment: DB_VENDOR: MYSQL DB_ADDR: mysql DB_DATABASE: keycloak DB_USER: keycloak DB_PASSWORD: mypass KEYCLOAK_USER: admin KEYCLOAK_PASSWORD: mypass # It didn't look like this actually got set. PROXY_ADDRESS_FORWARDING: "true" ports: - 10000:8080 depends_on: - mysql I also have the nginx config file to be used as a reverse proxy to keycloak ## Redirects all HTTP traffic to the HTTPS host server { listen 80; listen [::]:80; server_name keycloak keycloak.fqdn.com keycloak.fq.fqdn.com; server_tokens off; return 301 https://keycloak.fqdn.com$request_uri; } ## HTTPS host server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name keycloak.fqdn.com; server_tokens off; autoindex off; include conf.d/site-common-config/ssl.conf; access_log /var/log/nginx/keycloak-access.log combined; error_log /var/log/nginx/keycloak-error.log warn; location / { gzip on; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://127.0.0.1:10000; } } I have furthermore confirmed that (as far as I understand it) the /auth/realms/master/.well-known/openid-configuration is returning the correct values. I have been following the guide here and have updated the appropiate xml files as well and ran a reload command to ensure that the proxy-address-forwarding was set to true. However I get the javascript error Load denied by X-Frame-Options: https://keycloak.fqdn.com/auth/realms/master/protocol/openid-connect/login-status-iframe.html?version=4.3.0.final does not permit framing. I haven't been able to find anything in the docs so far to resolve this issue so any help would be appreciated. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
If I add the following header in the nginx/openresty config it works: location / { … add_header X-Frame-Options "SAMEORIGIN"; … } If you want to change the value in the realm with kcadm.sh (as the gui is not working) you can export, edit and import the realm with sudo -u keycloak /opt/keycloak/bin/kcadm.sh config credentials --realm master --user admin --server http://localhost:8080/auth sudo -u keycloak /opt/keycloak/bin/kcadm.sh get realms/master > realm.json # edit realm.json sudo -u keycloak /opt/keycloak/bin/kcadm.sh update realms/master -f realm.json

Related questions

0 votes
    Here is the story: My server is a cloud server running centos, and serves a few bunch of web ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    I'm looking for a way to configure Nginx to access hosted services through a subdomain of my server. Those services ... me with this? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    There are two web-apps: an app for desktop browser; an app for mobile browser; Ahead of them ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 6, 2022 in Education by JackTerrance
0 votes
    I've got a Node.js powered site that I'm running on Amazon Elastic Beanstalk. My Node.js app listens on port ... to my site via HTTPS. Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I am building a plugin for a web application in java which is running on Tomcat and behind a apache ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    I am building a plugin for a web application in java which is running on Tomcat and behind a apache ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 17, 2022 in Education by JackTerrance
0 votes
0 votes
    I have created a docker image. I want to push it into my docker repo but I am facing this error: denied: ... to the resource is denied Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    I have installed Docker Desktop for windows Docker version 18.09.2, build 6247962, and I'm not able ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    I have a JHipster monolithic app with oauth2 running Keycloak locally. I don't know how exactly should ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    Our clients are frequently reporting issue that they are getting "Access Denied" exception when they used to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 3, 2022 in Education by JackTerrance
0 votes
    Our clients are frequently reporting issue that they are getting "Access Denied" exception when they used to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 28, 2022 in Education by JackTerrance
0 votes
    I want to use my Amazon ec2 instance but faced the following error: Permission denied (publickey). I have ... denied (publickey) Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    Details: We are using Keycloak authentication server with Asp.Net WebAPI. Now I need to get the Keycloak ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    I have a mobile app(react-native), a resource service(spring boot) and Keycloak Authenticatioin Service(Auth ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
...