Thanks. But that doesn't verify the token.

On Fri, Sep 15, 2017 at 6:44 PM, oon arfiandwi <oon.arfian...@gmail.com>
wrote:

>
> Hi,
>
> have you try to use jwt_decode_handler(token)?
> I found this on utils.py
>
> I check the source code of verify token,
> there's reference to decode handler inside the code.
>
> --
> sincerely,
> Oon Arfiandwi
>
>
> On Fri, Sep 15, 2017 at 10:11 AM, Robin Lery <robinl...@gmail.com> wrote:
>
>> I am using django-rest-framework <http://www.django-rest-framework.org/>
>> for the REST API and django-rest-framework-jwt
>> <https://github.com/GetBlimp/django-rest-framework-jwt> for JSON web
>> token authentication. After a successful login, the user is provided with a
>> token. I have found how to verify a token
>> <https://getblimp.github.io/django-rest-framework-jwt/#verify-token>
>> with the api call, but is there any way to validate the token inside a view
>> and get the user of that token, similar to request.user?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/django-users/CA%2B4-nGopatOzbDz4HZmZwPOTVpv5whYBpW-%
>> 3DgPdG%2BFhDcmUJsQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CA%2B4-nGopatOzbDz4HZmZwPOTVpv5whYBpW-%3DgPdG%2BFhDcmUJsQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CACUNLpWTusizVeP3cFiGkGECoR%2BcRj4uMfu3akwtoqvEsK6iyg%
> 40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACUNLpWTusizVeP3cFiGkGECoR%2BcRj4uMfu3akwtoqvEsK6iyg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2B4-nGp75jBtCk3Uw1a8tf4E6537igiUDpqdGYG6xzM_MNrwnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to