Github OAuth with Enterprise Github

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

[auth.github]
enabled = true
allow_sign_up = false
client_id = my_client_id
client_secret = my_client_secret
scopes = user:email,read:org
auth_url = https://github.ibm.com/login/oauth/authorize
token_url = https://github.ibm.com/login/oauth/access_token
api_url = https://api.github.com/user
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://grafana.staged-by-discourse.com
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.