limit amount of authentication tokens

4 views
Skip to first unread message

cyril moreau

unread,
Jul 14, 2019, 7:33:45 AM7/14/19
to Django users
Hi,

I would like to know if there is a way to limit the amount of token that a user can create?

I am using django-oauth2-toolkit to generate the token.
The user can hit the auth url  (http://localhost:8000/o/token/) as much as he wants and creates a new token everytime he goes to that url. 
This action will fill up my database with new valid token.

How can i limit this token creation?
Should i limit this token creation? (like allowing 10 tokens by users to be able to log in my app from different devices)

Thank you for your help.

Cyril
Reply all
Reply to author
Forward
0 new messages