Closed toinbis closed 4 years ago
Hi @toinbin i have no time to look at it at the moment bu i will try to help you ASAP
I hope you're dealing well with the CV
Hi @mcueto - no rush at all. Ended up writting my own custom Auth class which was basically 1:1.01 copy of this repo content. All works now :) I think we can close this particular ticket. But before closing - I wanted to ask how are you dealing with delays of auth response caused by additional call to auth0 management API? You consider that not substantial to bug users? Cause as of now I'm thinking of some workarounds - maybe doing the initial call and then syncing permissions/roles/groups in the background, with webhooks or any way I can think of that doesn't require this call to management API each time user is authenticating.
Thanks again for great library! P.S. Just now realized what CV stands for :D Today is the last day of 14days mandatory home-isolation after returning from Thailand :D Hope you're doing well in this front as well!
I will deal with all the lag when memcached is implemented ( #52 ) so every developer can set how the cache config would adapt to each business model.
You couldn't use this library from pip because the tag published there is not the same code as the repo, i recommend you to install this package using pip install git+git://github.com/mcueto/djangorestframework-auth0.git
meanwhile(i'll update the package on pypi once memcached is implemented)
i'm doing pretty well, self isolated and limiting the contact with others at a minimum(go to the grocery store near my home).
Oh, I haven't seen this ticket! Thanks for letting me know.
Also thanks for update on the pip status as well, much appreciated. Will be watching this repo and surely waiting for updates on #52.
Putting code aside - am really glad you are doing well! Let's stay this way! :)
WIll talk in other tickets, am closing this one to issues list neat and clean!
Hi,
I have a setup that works with
rest_framework_jwt
, yetrest_framework_auth0
returns 401 unauthorize.My settings.py:
I make API call from authorized SPA application(vue.js), with
rest_framework_jwt.authentication.JSONWebTokenAuthentication
as a single element inDEFAULT_AUTHENTICATION_CLASSES
HTTP Request/Response looks as follows:Yet if I swap to
rest_framework_auth0.authentication.Auth0JSONWebTokenAuthentication
as a single element inDEFAULT_AUTHENTICATION_CLASSES
, the result is:Maybe you can spot the problem in my config? Or probably you can guide me what would be the standard way to debug such situation. Played a bit with logger but could not manage to get it printing all the steps.
Other than that - thanks for cool lib. I intend to use it because I prefer user to be created in Django upon first auth. I also very keen to fully understand how the Roles/Permissions are validate via management API, not sure how will use that yet this seems to give more control/flexibility.
Best, Tom