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
Post a Comment