We have a web application with Google calendar API using OAuth 2.0 client IDs. The problem is that it works well with the Test app: http://test.our-domain.com
BUT it doesn't work in the production that has SSL.: https://app.ourdomain.com
Both are on the same server and on the same domain, Both are authorized in the Credentials page as http://test.our-domain.com/callback and https://app.ourdomain.com/callback
When the user sign in it looks like the process is OK but the Token does not being saved.
Here is the error we have on the production log - Please help...
2017-11-23 22:49:56,656 [ 33] ERROR DotNetOpenAuth.Http - WebException from https://accounts.google.com/o/oauth2/token: { "error" : "redirect_uri_mismatch" }
2017-11-23 22:49:56,656 [ 33] ERROR Client.Management.UserCalendarEntryController
- Failed to get google authenticator for XXXXXXXXXXXXXXXXXX Blockquote