#GitHub Auth Fails on EC2 Deployment — NOTALLOWEDERROR & IP Origin Not Allowed

1 messages · Page 1 of 1 (latest)

solar inlet
#

I’ve successfully set up GitHub authentication in my Backstage app and it works locally. However, after deploying it to an EC2 instance, I'm getting login failures with errors like NOTALLOWEDERROR and messages about the IP origin not being allowed. It seems related to OAuth app origin restrictions. Any advice on fixing this for EC2 or allowing external IPs?

surreal hollow
#

Hi @solar inlet , It looks like the issue might be related to the Callback URL in your GitHub OAuth app settings. If the deployed EC2 instance's IP or domain isn't correctly listed as the callback URL, GitHub will block the login with an error. Please double-check that the correct callback URL is added in the OAuth app configuration.

solar inlet
#

Hi @surreal hollow Thanks for your insights.
Actually I have tried it aswell but still there is the same error.