简体   繁体   中英

Is there a difference in authentication\authorization in Django and Django Rest Framework?

I am learing Django and Django REST Framework for project

I recently added authorization/authentication in the Django project, and after that created API for the app, and for that I installed DRF.

"The Django authentication system handles both authentication and authorization. Briefly, authentication verifies a user is who they claim to be, and authorization determines what an authenticated user is allowed to do. Here the term authentication is used to refer to both tasks."

Source: https://docs.djangoproject.com/en/4.1/topics/auth/

To sum up, authentication is the way to recognize an user, authorization is the way you allow certains actions to your users.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM