skoruba / Duende.IdentityServer.Admin

The administration for the Duende IdentityServer and Asp.Net Core Identity ⚡
Apache License 2.0
542 stars 188 forks source link

raise UserLoginSuccessEvent when logging in with 2fa or recovery code #202

Closed bakk closed 4 months ago

bakk commented 4 months ago

The UserLoginSuccessEvent is raised when a user logs in normally (see https://github.com/skoruba/Duende.IdentityServer.Admin/blob/main/src/Skoruba.Duende.IdentityServer.STS.Identity/Controllers/AccountController.cs#L151) This PR adds the event when 2fa login is used, and when recovery codes is used.

skoruba commented 4 months ago

Thank you!