Error in setup Grafana + Keycloak

I am trying to set up , Auth using keycloak in Grafana.

But I am getting a error : login.OAuthLogin(NewTransportWithCode) : {“error”:“invalid_grant”,“error_description”:“Code not valid”}"

My configuration is

enabled = true
;name = OAuth
allow_sign_up = true
client_id = grafana
client_secret = c20c1a44-28d5-4150-9f4b-7d893d63bb68
scopes = openid email profile
;empty_scopes = false
;email_attribute_name = email:primary
;email_attribute_path =
;login_attribute_path =
;name_attribute_path =
;id_token_attribute_name =
auth_url = &https:&mykeycloackcom&auth&realms&main-realm&protocol&openid-connect/auth
token_url = &https:&mykeycloackcom&auth&realms&main-realm&protocol&openid-connect/token
api_url = https://my.keycloack.com/auth/realms/main-realm/protocol/openid-connect/userinfo
allowed_domains = https://my.keycloack.com
;team_ids =
;allowed_organizations =
;role_attribute_path =
;role_attribute_strict = false
;groups_attribute_path =
tls_skip_verify_insecure = true
;tls_client_cert =
;tls_client_key =
;tls_client_ca =

Currently grafana server is not served in https, but keycloak is …