Github OAuth with Enterprise Github

I’m trying to integrate Grafana OAuth with Enterprise Github. Following is my configuration

enabled = true
allow_sign_up = false
client_id = my_client_id
client_secret = my_client_secret
scopes = user:email,read:org
auth_url =
token_url =
api_url =
team_ids =
allowed_organizations = my_org_name

I’m trying to login by port-forwarding my grafana pod. Getting the following error

One thing here is the github application I created was using my grafana url which I will be using from browser. Currently, as mentioned above I’m logging in using port-forwarding, hence the url is http://localhost:3000
Is this the reason for the error ?
Any pointers to where I might be going wrong ?

You error message is in your browser URL (?error=<error message>). I guess redirect URI mismatch.