OAuth2 endpoint redirects to localhost instead of public IP
See original GitHub issueGeneric OAuth2 filter worked on my localhost dev environment, but seems to have a small bug when deployed to a test server with proper domain names.
I have set up Nginx reverse proxies for both Para and Scoold, which seem to work fine.
Except for the oauth2_auth
endpoint which redirects to localhost
instead of the expected public domain and makes the authentication flow fail. ( redirect looking like this: http://localhost:8040/signin/success?jwt=<token>
instead of http://qa.test.isabot.net/signin/success?jwt=<token>
)
Scoold’s application.conf has both URL’s set up correctly:
para.host_url = "http://qa.test.isabot.net"
para.endpoint = "http://para.test.isabot.net"
Am I missing something in Para’s application.conf?
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Can a public IP address be used as Google OAuth redirect URI?
I'm trying to set a web service that needs the user's Google Latitude info, so I'm using Google OAuth to get the user...
Read more >Using OAuth 2.0 for Web Server Applications | Authorization
The redirect URIs are the endpoints to which the OAuth 2.0 server can send ... If your public application uses scopes that permit...
Read more >Change redirect URI from localhost to 127.0.0.1 #594 - GitHub
Specifying a redirect URI with the loopback IP literal rather than localhost avoids inadvertently listening on network interfaces other than the ...
Read more >How to setup HTTPS for localhost OAuth 2.0 web client testing ...
This guide explains how to setup HTTPS for convenient testing and development of OAuth 2.0 web clients (and OpenID relying parties) on a...
Read more >Redirect URLs - OAuth 2.0 Simplified
Because the redirect URL will contain sensitive information, it is critical that the service doesn't redirect the user to arbitrary locations.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Confirmed working.
Great! I’m closing this issue.