record user.login event by kratos hooks (#111)

* record user.login event by kratos hooks

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>

* added test case for create login auditlog

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>

* updated change log

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>
This commit is contained in:
Abhijit Mukherjee
2022-12-26 11:55:19 +05:30
committed by GitHub
parent f5cbe6ca1e
commit cd55d2d1da
11 changed files with 934 additions and 369 deletions

View File

@@ -113,3 +113,7 @@ func (s *userServer) UserForgotPassword(ctx context.Context, req *rpcv3.UserForg
return s.us.ForgotPassword(ctx, req)
}
func (s *userServer) AuditLogWebhook(ctx context.Context, req *rpcv3.UserLoginAuditRequest) (*rpcv3.UserLoginAuditResponse, error) {
return s.us.CreateLoginAuditLog(ctx, req)
}