You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I plan to implement the IUserSecurityLog feature in Volo.Abp.Security. Similar to the audit log.
It has an interface (IUserSecurityLogStore) + default implementation class + UserSecurityLogInfo model class.
User security logs can be written in any layer in any module, such as login success/failure, logout. Change password. Modify email, get refresh_token and any security logs that need to be recorded.
After that,Implemented EF/MongoDB storage in the Identity module.
publicinterfaceIUserSecurityLogStore{
Task SaveAsync(UserSecurityLogInfouserSecurityLogInfo);}[Serializable]publicclassUserSecurityLogInfo:IHasExtraProperties{/// <summary>/// The name of the application or service writing user security logs./// Default: null./// </summary>publicstringApplicationName{get;set;}/// <summary>/// Web, JWT, Identity, Identity_Server/// </summary>publicstringIdentity{get;set;}/// <summary>/// login_successful, login_failed, logout, change_pwd, refresh_token.../// </summary>publicstringAction{get;set;}publicDictionary<string,object> ExtraProperties {get;}publicGuid?UserId{get;set;}publicstringUserName{get;set;}publicGuid?TenantId{get;set;}publicstringTenantName{get;set;}publicstringClientId{get;set;}publicstringClientName{get;set;}publicstringCorrelationId{get;set;}publicstringClientIpAddress{get;set;}publicstringBrowserInfo{get;set;}publicDateTimeCreationTime{get;set;}publicUserSecurityLogInfo(){ExtraProperties=newDictionary<string,object>();}}
The text was updated successfully, but these errors were encountered:
So would this be similar to AbpUserLoginAttempts the in the old framework except it is more generic? And would it log user login/registration attempts as default? #2813
I plan to implement the
IUserSecurityLog
feature inVolo.Abp.Security
. Similar to the audit log.It has an interface (
IUserSecurityLogStore
) + default implementation class +UserSecurityLogInfo
model class.User security logs can be written in any layer in any module, such as
login success/failure, logout. Change password. Modify email, get refresh_token
and any security logs that need to be recorded.After that,Implemented EF/MongoDB storage in the Identity module.
The text was updated successfully, but these errors were encountered: