flask - Google Oauth redirect_uri not working with domain aliases -


i have 2 domains pointing same public ip.

domain1 : sub.domain1.com  domain2 : sub.domain2.com  domain2 has alias domain1  

i have registered both below api's redirected apis google dashboard follows

api1 : sub.domain1.com/authorized  api2 : sub.domain2.com/authorized 

i have integrated google oauth service flask web application , working expected when access application using domain name "sub.domain1.com".

i login/logout , works perfect

but,when access flask application using domain sub.domain2.com

and tried login got error saying invalid response google redirecting sub.domain1.com/authorized?code=4/7jglt8defsb4gubhglr9xegypsovgcity7xrrtpgwu8#

i not understand if access application using "sub.domain2.com" redirecting "sub.domain1.com/authorizedauthorized?code=47jglt8defsb4gubhglr9xegypsovgcity7xrrtpgwu8#" giving error invalid response google

please can me ?


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -