Django-OAuth-ToolKit : Generating access token's for multiple resources/services using client credentials grant type of OAuth2.0

后端 未结 2 669
有刺的猬
有刺的猬 2021-01-14 02:39

I have a couple of backend API\'s which are Django projects. They have a UI ( single page app) to it and a user name password based login.

My clients are usually dev

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-14 03:14

    To simply secure the backend you can use the builtin Token Authentication.

    It's perfectly secure to get started. It limits you to a single token per user/account which may impact the "user experience" when it comes time to rotate/revoke a token. There are also some downsides when it comes to scaling up to support large transactional volumes. Otherwise it's really fine.

    Once you better understand your needs you can consider moving toward JWT, OAuth or other more advanced/complex token based authentication approaches.

提交回复
热议问题