Open karelmaxa opened 1 year ago
There are more issues related to admin tokens... The latest issue was solved in #63, although my comment contained incorrect observation that admin tokens should not belong to CTS (storing admin tokens in CTS was a planned change for AM 14).
There are few points that needs to be addressed:
Currently, every
ssoadm
operation performed by theamAdmin
account creates two SSO tokens (amAdmin
,dsameuser
). The token foramAdmin
is destroyed when the operation is finished CommandManager.java#L215, but thedsameuser
token is not. These tokens are created as non-expiring, so the AM extends their validity until the shutdown, even though they are useless. In my opinion, these tokens should also be destroyed (or not created) because there is no use case for reusing them.