-
Notifications
You must be signed in to change notification settings - Fork 4k
Consider create datetime on ClientSecret #2055
Comments
This would mean a schema change - and we try to avoid that.. I will put it in backlog. |
Do you have any idea how much hair pulling i have had from the schema changes in 1.x -> 2.0 upgrade? I kind of thought you guys loved schema changes :) Can we get migration steps in this time? |
Migrations are the concern of the hosting application. This is because fundamentally EF migrations don't support library style akpplications. |
We'll add this on the 3.0 milestone, since that will be an expected big (schema) change. @leastprivilege also is mentioning a "last access" time so people know which secrets are stale. |
Can we add a create datetime and a last access datetime for Clients as well. I am going to see about adding it to client properties for now. |
Also, perhaps a LastAccessedDate |
I keep meaning to try to add this as a clientproperty to the client validate. I just couldn't decide if lastaccessdate counted with failed login or just with successful logins. we apparently need this for GDPR compliance. |
I am planning to add this to the user db to record last successful login as I use that to establish termination date, which is what I need for consent receipt for GDPR. BTW, I implemented consent receipt on a ASP.NET identity / idsvr4 OP. But I have not found any good way to have user consume the data as yet, failed logons could be some sort of attack and not the user's access attempt |
But in the event of client credentials Grant type its not a user and you would need to store lastaccessdate of the client itself. what about refresh token usage do you think it best to store that on the user or the client or the client access grant can't remember that table I am mobile right now. |
GDPR should only apply to user? or am I missing something here? |
It is possible that this is a requirement from a customer I am not privileged to that information. I was told anyone or anything accessing data must be logged. In the event of a client its the developer who we must log who's data they accessing and when oauth2 clients. If its an identity login then we log it as the user. |
The values we're discussing here are client, not user related. |
@brockallen Sorry we apart to have side tracked your thread. I would be interested to hear how you plan on detecting last access? Are we talking last valid use of it or last attempted use of it? Also probably another issue but a method for resetting secret would be really nice. |
Yea, we'd have to find out in the authN code which one is matched and then somehow trigger an update to the DB for it. |
wouldn't the easiest solution be to update the field on successful login (to the OP, not the client)?
That's all I had planned to do.
Peace ..tom
…________________________________
From: Linda Lawton <notifications@github.com>
Sent: Tuesday, June 5, 2018 5:32 AM
To: IdentityServer/IdentityServer4
Cc: tom jones; Comment
Subject: Re: [IdentityServer/IdentityServer4] Consider create datetime on ClientSecret (#2055)
Going to have to do some kind of load testing you dont want two updates running at the same time crashing into eachother.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#2055 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AKxq1k_za5Y8OWu3lrlHuLkyBx5sd89Oks5t5nprgaJpZM4R8Ukf>.
|
Ok I am going to play devils advocate here and ask will updating the database on all successful logins cause any load issues? deadlocks can't happen on update iir but what happens if the row no longer exists for some reason or you can't access the database. there will need to be some readable error handling with this. |
This thread does seem to be wandering, but you should consider the purpose of the field. If the record doesn't exist there is no purpose served in updating it. |
1 similar comment
This thread does seem to be wandering, but you should consider the purpose of the field. If the record doesn't exist there is no purpose served in updating it. |
I don't see this for 2.3 - will be considered at some later point. |
I misspoke ;) |
Created date time added to the secret EF class. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Client secrets are created and we can have more then one. I was thinking that our developers may create several client secrets. It would be nice to know when a secret was created. My current solution is to add a time stamp to the description property which works but isn't ideal.
I am willing to submit a pull request on this if you agree its wroth adding.
The text was updated successfully, but these errors were encountered: