-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add last_used property to clients #675
Conversation
I added the The first time a client is used an entry is added to Then, when a client is used again the entry in the Still, the read operation always performs two queries to the DB (as far as I understand). I added the |
Is it necessary to have an entry if the value is set to null? |
The value of |
...p/resources/iam/apps/dashboard-app/components/clients/clientslist/clientslist.component.html
Outdated
Show resolved
Hide resolved
...p/resources/iam/apps/dashboard-app/components/clients/clientslist/clientslist.component.html
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
iam-persistence/src/main/resources/db/migration/mysql/V100__client_last_used.sql
Outdated
Show resolved
Hide resolved
8a5a214
to
ef46ee4
Compare
This reverts commit 56aef73.
Quality Gate passedIssues Measures |
* Add table CLIENT_LAST_USED * Add last used column on dashboard clients table * Add TOKEN event to IamAuditApplicationEvent and publish AccessTokenIssuedEvent and AccessTokenRefreshedEvent * Hide column on dashboard when tracking disabled * Enable the tracking by default
Related to issue #605
We want to keep track of the last time a client has been used so that the long unused clients can be easily identified and deleted by the administrators.
A
last_used
column is added to theClientDetails
table and the API and dashboard are updated accordingly.This requires an update to the
ClientDetailsEntity
on MitreID.