security - Django user login through api -


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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -