how to integrate django rest framework jwt and angular 4 authentication?

34 views
Skip to first unread message

rakibul

unread,
Dec 19, 2017, 12:59:01 PM12/19/17
to Django users
Hi everyone.
I want to build a system where user logged in using username & password.In that purpose i am used djangorestframework-jwt in token based authentication system.
djangorestframework-jwt provided this urls    url(r'^api/auth/token/', obtain_jwt_token)
if i go this url it shows username and password field in browserable api it's ok because it's builtin views.Before using djangorestframework-jwt i was create an accounts app where also user's login and registration method available based on django user model simple as username and password filed available.After register a user if i was open api/auth/token it's gives username & password filed if i was fullfill the requirement it's show me a token it's also ok but my own login view where i was used in that case i didn't understand.
And my angular 4 auth service which api end point used to login.

Reply all
Reply to author
Forward
0 new messages