10👍
google’s documentation is not clear on this part (probably a bug on google’s end too):
go to your GCP console, under OAuth consent screen
, when the Publishing status
is In production
, we can still put http://localhost:8080/oauth-authorized/google
under the Authorized redirect URIs
without triggering the red error message saying Invalid Redirect
. However, it doesn’t work unless the app is in Testing
status.
so in order to test your app at http://127.0.0.1:8000, you need to bring your GCP app to Testing
status
1👍
hey i was dealing with this problem in ASP.Net MVC,
i think the reason would be the same in php but anyways,
Make sure to copy that url in ur below img to Authorized redirect URIs in OAuth 2.0 Client IDs in Google cloud console.
1👍
Copy the url that comes with the error message you get and add it to the authorize redirect uris in your google cloud console
- Related name for recursive many to many relationship not working
- Django 1.4 – bulk_create with a list
- How do you actually use a reusable django app in a project?
- What does "Directory indexes are not allowed here." mean in a Django error?
0👍
Check if you are logged in to your google account.
I was using google chrome browser and turns out I was logged out of Gmail as the session expired and when I logged into Gmail and the issue was resolved
- How to activate the process queue in "django-background-tasks"
- Django migrations conflict multiple leaf nodes in the migration graph
- How do I serve media files in a local Django environment?
- How do you get Django to make a RESTful call?
0👍
In my case, it working in development environment and not in production environment. Enabling API KEY for production resolved the issue.
0👍
In my case I needed to change my redirect URI from
https://{{my-url}}/google/endpoint
To
https://www.{{my-url}}/google/endpoint
- Render one queryset into 2 div columns (django template)
- Django – template context processors – breaking my app
- Return Custom 404 Error when resource not found in Django Rest Framework
- Cache a django view that has URL parameters
- Displaying both sides of a ManyToMany relationship in Django admin