security - Django user login through api -
this question has answer here:
i want create login form users sign django site. site set using django rest framework , considering having login form make request through site's api.
in past have used standard django form user logins. concerned if new login form sends request through site's api instead, there might security vulnerability of sort. don't know if true, or issue security might be.
should stick django forms authenticating users? or safe sign users in through api?
keep in mind using django form allow use sessionauthentication under drf - more notes here. short of use django loginviews when creating login pages, , notes on using csrf tokens if use session auth drf. http://www.django-rest-framework.org/api-guide/authentication/#sessionauthentication
how rest of site set up? single page app happens using drf?
Comments
Post a Comment