Questions tagged keycloak

Explore the latest questions and answers asked by our top developers.

Setting up node oidc-provider with keycloak docker

I am trying to have a basic node oidc-provider app as OIDC provider for my keycloak server. Keycloak correctly links to the login page of my app. After entering username and password I get correctly transfered back to keycloak. However, keycloak than says "Unexpected error when authenticating with identity provider". Identity Provider config: here My […]

Keycloak token verification fails when the backend is running in a Docker container

I am in the early stages of building my web application. I intend to use Keycloak as the identity provider to secure the backend. On my local machine, I am running both Keycloak and my backend as docker containers but on different networks, since eventually in production, I would like to have the authentication server […]

By theTypan
Published
Categorised as docker, keycloak, oauth-2.0 Tagged , ,

Connection refused when building and connecting from spring boot container to keycloak container

I have built two docker containers, spring boot container and keycloak containers. When I run it locally, it works. However, when I build and run both of them in container, it fails and shows errors. Spring boot error I got an error when running spring boot in containers springs_keycloak | 2022-01-12 07:36:05.116 WARN 1 — […]

By D ng Minh
Published
Categorised as docker, java, keycloak, spring, spring-boot Tagged , , , ,

com.auth0.jwk.NetworkException: Cannot obtain jwks from url- caused by – Caused by: java.net.ConnectException:Connection refused (Connection refused)

there is container running docker-compose.yml keycloak: build: config image: docker.clear2pay.com/c2p-base/keycloak:8.0.2 ports: – "9090:8443" environment: DB_VENDOR: h2 KEYCLOAK_USER: admin KEYCLOAK_PASSWORD: password networks: – custom_network Dockerfile FROM docker.clear2pay.com/c2p-base/keycloak:8.0.2 EXPOSE 8443 https connection is refused to this container from another container in the same network ( custom_network) https://:9090/auth/realms/paasv2sso/protocol/openid-connect/certs –log– paas_mi_artifacts_1 | com.auth0.jwk.NetworkException: Cannot obtain jwks from url https://ci_keycloak_1:9090/auth/realms/test/protocol/openid-connect/certs […]

By Virendra Singh
Published
Categorised as connection-refused, docker, jwk, keycloak, ssl Tagged , , , ,

Bad Gateway 502 Connection Refused Nginx, Docker Compose and Keycloak

I’m having trouble configuring Nginx and Keycloak together with docker-compose. I keep receiving 502 Bad Gateway error when trying to access the Keycloak dashboard behind Nginx reverse proxy. Here is my docker-compose.yaml file # Docker Compose file Reference (https://docs.docker.com/compose/compose-file/) version: ‘3.8’ services: nginx: image: my-nginx-image ports: – "80:80" depends_on: – db-keycloak – keycloak restart: always […]

By Nalyd
Published
Categorised as docker, docker-compose, keycloak, nginx Tagged , , ,

How to import keycloak user via docker-compose?

I am trying to import keycloak users with docker-compose. What I have tried ? keycloak: container_name: keycloak image: quay.io/keycloak/keycloak:15.0.2 ports: – 8079:8080 # restart: on-failure volumes: – ./keycloak/realms/keycloak-realm.json:/opt/jboss/keycloak/imports/keycloak-realm.json – ./keycloak/realms/keycloak-users-0.json:/opt/jboss/keycloak/imports/keycloak-users-0.json command: – "-b 0.0.0.0 -Djboss.http.port=8080 -Dkeycloak.import=/opt/jboss/keycloak/imports/keycloak-users-0.json" environment: DB_VENDOR: POSTGRES DB_ADDR: postgresdb DB_DATABASE: keycloak DB_USER: keycloak DB_SCHEMA: public DB_PASSWORD: [email protected] KEYCLOAK_USER: admin KEYCLOAK_PASSWORD: admin123 KEYCLOAK_IMPORT: /opt/jboss/keycloak/imports/keycloak-users-0.json […]

By power-cut
Published
Categorised as docker, docker-compose, keycloak Tagged , ,

Deploying postgresql driver dependency with Keycloak SPI jar inside Docker image

When we deploy the custom SPI Jar inside keycloak docker image, we get the ClassNotFoundException for postgresql Driver. We tried the following, yet got the same error: Adding jboss-deployment-structure.xml with postgresql as module inside opt/jboss/keycloak/modules/system/layers/base/org/postgresql/jdbc/main/ this contains both postgresql.jar and module.xml Using standalone keycloak following the steps as in (module approach) https://www.keycloak.org/docs/latest/server_development/#_providers_admin_console But we get […]

By Suha Ramesh
Published
Categorised as docker, keycloak, postgresql, wildfly Tagged , , ,

Angular Keycloak and Spring Boot 401 Error

I developed a couple of microservices in Spring Boot and secured them with Keycloak 15, I deployed the microservices onto an AWS EC2 instance in docker with an nginx reverse proxy with a letsencrypt certificate, suddenly some microservices always return a 401 error, when I inspected the response header in Postman / Chrome devtools, I […]

Keycloak docker doesn’t start because WildFly initial state transfer timed out for cache

I’m using jboss/keycloak:15.1.0 docker image for integration testing in the Gitlab CI. Single Keycloak service for a job with many jobs as a part of a single pipeline. Sometimes it fails to start (in less than 1/4 of cases). The issue was observable for jboss/keycloak:15.0.2 as well. The only startup arguments that I set are […]

By Nestor
Published
Categorised as docker, keycloak, wildfly Tagged , ,

Keycloak sso login fails with nullpointerexception from Spring application

I have a spring application running on Tomcat 9.0.55 from Intellij Idea but having problem with the Keycloak SSO: KeycloakDeployment – Failed to load URLs from http://localhost:9080/auth/realms/XXXX/.well-known/openid-configuration java.lang.Exception: Not Found at org.keycloak.adapters.KeycloakDeployment.getOidcConfiguration(KeycloakDeployment.java:233) and at the url http://localhost:8680/…/sso/login I am getting the following 500 error: java.lang.NullPointerException org.keycloak.adapters.OAuthRequestAuthenticator.getRedirectUri(OAuthRequestAuthenticator.java:175) org.keycloak.adapters.OAuthRequestAuthenticator.loginRedirect(OAuthRequestAuthenticator.java:213) org.keycloak.adapters.OAuthRequestAuthenticator.authenticate(OAuthRequestAuthenticator.java:275) org.keycloak.adapters.RequestAuthenticator.authenticate(RequestAuthenticator.java:138) org.keycloak.adapters.springsecurity.filter.KeycloakAuthenticationProcessingFilter.attemptAuthentication(KeycloakAuthenticationProcessingFilter.java:154) The Keycloak is running on […]

By georgeliatsos
Published
Categorised as docker, keycloak, spring, spring-boot Tagged , , ,
1 2 3 18

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq