Hi,
Did you have a look at the PreToken script?
/**
* Limit the number of tokens per user per client.
*
* The code enforces a maximum for the number of grants allowed on a per
* user per client basis.
*
* To change the limit, set the variable "max_oauth_grants_per_user_per_client"
* to an integer value. The default limit is 20.
*
* Two algorithms are implemented in this mapping rule:
* 1) Strictly enforce the limit.
* 2) When the limit is reached, remove the least recently used token(s)
* for the user per client.
*
* The algorithm strictly enforce the limit is the default.
*
* The algorithm being used is controlled by the variables "limit_method", set
* it to "strict" or "lru".
*
* To disable limiting the number of tokens allowed, change the
* "limit_oauth_grants_per_user_per_client" variable to "false".
*/
------------------------------
-------------------
Emmanuel Fauconnier
9.0.7.1
-------------------
------------------------------
Original Message:
Sent: Mon July 27, 2020 09:36 AM
From: mohamed ghonem
Subject: Revoke all tokens for user
Hi Community,
I want to manage the session for the user who is using the OAuth token. So I will not allow users to get more than one token. How can you deal with this situation?
Thanks
------------------------------
mohamed ghonem
------------------------------