Grafana and Keycloak 18.0 integration ;page not found while logging in

307 views
Skip to first unread message

Jabeer Khan

unread,
Jun 23, 2022, 7:59:13 AM6/23/22
to Keycloak User
Hi All,
I am working on integrating Grafana with Keycloak 18.0 on AKS personal kubernetes cluster .

I understand /auth removed from the default context path hence page not found error when click on login with keycloak option

There is a sol to use --http-relative-path=/auth , but not ideal when you work with k8s 
as if you use it, admin url of Keycloak wont work.hence we cant create conf.

Below are the endpoints to use in grafana.ini



 Any suggestion most welcome.

Thanks 
Jabeer

Jabeer Khan

unread,
Jun 27, 2022, 6:37:30 AM6/27/22
to Keycloak User
Hi All ,

Am able to get the login page for the keycloak on Grafana ;

But while login the below error occur.

login.OAuthLogin(NewTransportWithCode)

This is test environment , Grafana is on 3000 port ,I did port forward to 3000 ; Grafana deployed as prometheus tech stack 
Keycloak on 8080 port .

logs on Grafana container :

logger=context traceID=00000000000000000000000000000000 userId=0 orgId=0 uname= t=2022-06-27T05:49:16.98+0000 lvl=eror msg=login.OAuthLogin(NewTransportWithCode) error="Post \"http://localhost:8080/auth/realms/grafana/protocol/openid-connect/token\": dial tcp [::1]:8080: connect: connection refused"
logger=context traceID=00000000000000000000000000000000 userId=0 orgId=0 uname= t=2022-06-27T05:49:16.98+0000 lvl=eror msg="Request Completed" method=GET path=/login/generic_oauth status=500 remote_addr=127.0.0.1 time_ms=1 duration=1.152466ms size=1365 referer= traceID=00000000000000000000000000000000

Appreciate your help
Thanks 
Jabeer
Reply all
Reply to author
Forward
0 new messages