Open jcugley opened 5 years ago
I've run into this one several times. The docs say that it's related to email whitelisting, but I got it in other circumstances as well.
The things that fixed it for me are that:
If anyone finds this looking for the problem I had, the answer is to set the permissions individually in your viewsets. IE
class IslandViewset(viewsets.ModelViewSet): serializer_class = IslandSerializer queryset = Island.objects.none() permission_classes = [IsAuthenticatedOrReadOnly]
I've been having the same problem. This occurred after updating my social-auth-core version to 3.2.0 and while using social-auth-app-django version 1.2.0.
Things 2 and 3 that @briandoyle81 referenced didn't apply to me, and I wasn't sure how to do thing 1. I also didn't have any viewsets.
If you had it working previously, then number 1 probably doesn't apply to you. I was initially sending the wrong token/info in the post. I switched it to simply passing on the complete object returned by Google and that fixed it.
I had this same problem with AuthForbidden when using Google OAuth2 and it took me a very long time to figure it out. In my case, I seem to have had a config conflict with the pandas & numpy packages. The numpy package was being loaded as a dependency of the pandas package, which I was using to process CSV files. When I rebuilt my environment without pandas (so without numpy, also), I stopped getting this AuthForbidden exception. I assume it was numpy causing a problem with some math computations related to encoding/encrypting. (So, I had to write a little python code to process my CSV files and was able to skip installing pandas (and numpy).)
Getting the error in the title:
I've spent all day trying to figure it out and have come up with nothing ðŸ˜
This is the stack trace: