Peter-Slump / django-keycloak

Django app to add Keycloak support to your project.
MIT License
127 stars 119 forks source link

Unable to refresh OIDC .well-known or certificates #47

Closed nl2412 closed 4 years ago

nl2412 commented 4 years ago

Hello! Thanks for the great library. Unfortunately, I am currently having problem setting up and integrate it in my project. Every time I request refreshing OIDC .well-known or certificates from django admin console, I get this error:

ConnectionError at /admin/django_keycloak/realm/

HTTPSConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /auth/realms/xxxxx/.well-known/openid-configuration (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f00ac0520f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

My current project is using:

All helps are appreciated! Thanks

srinathganesh1 commented 4 years ago
nl2412 commented 4 years ago

Ahh you are right my django app is running in a container so localhost won't work here. Thanks !