Sign in with Google using .net api

Viewed 156

I am trying the quick start program at Gmail quickstart .net , but i get an error 400, mismatched url.

I have added two localhost urls for callback but the error still persists. I know similar questions were asked before but that didn't solve my problem. Any help would be greatly appreciated.

1 Answers

For .net the redirect uri in google developer console should be

http://localhost/authorize/ 

or

https://localhost:5001/signin-oidc

I think it depends on if you are using .net or .net core.

update

redirect_uri_mismatch The redirect URI in the request

Means that the uri you are sending from is not in the list that you have added in Google developer console these uris must match. You need to set your development environment to use a static port and then add that to your project in google developer console.

Related