auth::token::revoke (public)
auth::token::revoke -purpose purpose -user_id user_id
Defined in packages/acs-authentication/tcl/token-procs.tcl
Revoke the outstanding token for this account and purpose. When called as part of an account update, take the token account lock before making the update and keep both operations in the same transaction.
- Switches:
- -purpose (required)
- -user_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: db_transaction { if {[auth::token::lock_account $user_id]} { db_dml revoke_token { delete from auth_action_tokens where user_id = :user_id and purpose = :purpose } } }XQL Not present: Generic, PostgreSQL, Oracle