c# - Google Oauth 2.0 redirect_uri_mismatch - Port changed on callback -


i'm using google.apis.auth.oauth2.googlewebauthorizationbroker.authorizeasync() authenticated google account, problems google returns 400 error after i've logged google account:

the redirect uri in request: http://localhost:40745/authorize/ did not match registered redirect uri.

but mvc application runs @ 46423, redirect uri set http://localhost:46423/authorize/ in dev console. missing?

the redirect uri changes each time debug. should add http://localhost/authorize/ redirect uri list in credential page.


Comments