I want to add authentication to my API, so only authorized people can see the data.
To my resource class I added:
authentication = BasicAuthentication()
authorization = DjangoAuthorization()
Then I added a new user using Django admin. He's listed as active and staff. No other permissions have been given.
Now whey I try the resource URL, it asks for credentials.
When I use the new users credentials, I get nothing:
{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null, "total_count": 0}, "objects": []}
No objects, nothing. If I login as root, I see all the data.
How do I assign stuff to the user so it can see the resources?