falcaopetri / enqueuer-api

https://enqueuer-api.herokuapp.com
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Integrate django-userena, django-friendship, and django-rest-framework's Authentication & Permissions #3

Open falcaopetri opened 8 years ago

falcaopetri commented 8 years ago

django-userena, django-friendship are already "enabled", but not integrated.

They are exposing their default API, that should be integrated with Enqueuer-api.

Django-userena has less information about its API.

For more information about django-rest-framework's Authentication & Permissions, read its Tutorial Part 4.

falcaopetri commented 8 years ago

I am doing some work to integrate django-userena and django-rest-framework's authentication on branch authentication (https://github.com/falcaopetri/enqueuer-api/compare/master...authentication)

falcaopetri commented 8 years ago

I've been trying to use the library fh-drf-friendship to provide basic views and serializers to django-friendship on DRF. It seems to be an initial work with git repository hosted here.

It has been really hard to make it work. It seems to use Python 2, Django < 1.10 and depends of another library (fh-drf-commons). It breaks on Django 1.10 because of a not-anymore-supported class (SubField, e.g. Fix Django 1.10 Deprecation Warning "SubfieldBase has been deprecated.").

I was able to edit the library and remove this dependency (but I'm not sure about consequences of this). Even so, the library does not fit well the current Enqueuer's User model (using django-userena).

So probably I could use this library as a base to code some new Views and Serializers for django-friendship. fh-drf-friendship does not have too many things by now, so the work to integrate it and the work to code a corresponding "internal library" is the same.