C
C#

help

Possible to 'intercept' a successful sign in attempt with .net core identity?

BBread9/29/2022
I was curious if it was possible to add some middleware that would detect if someone has signed in successfully with Identity, I'd like to raise my own events and handle them as I need
FFroH.LVT9/29/2022
You can custom Log in Action => you can raise any event you want
BBread9/29/2022
I won't have control over the controller
FFroH.LVT9/29/2022
create your own login page and use SignInManager would be good enough
SSossenbinder9/29/2022
If you're referring to HttpContext.SigninAsync, then I think it ultimately at some point requests a IAuthenticationService through DI, which has the SignInAsync method Maybe you can create a decorator for IAuthenticationService and register it With the decorator raising an event

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
how do i count how much a user input the same numberwant to create a program that makes the user input some numbers and then count how many times the usCreating an Array of strings from a stringified JSONSo I have this kind of JSON structure: ```json { "sourceJson": [ { "BookID": "1", im coding a guessing game but got an error [Answered]does anyone know how to fix this errorHow to use .NET 7 preview?I am trying to use .NET7 (Version: `7.0.100-preview.7.22377.5`) and I am using VS 2022 (latest previsource and targetSay I have two `Dictionary<string,JValue>` items. and I want to return a new `JsonConvert.SerializeOSending email SMTP[Answered]I am trying to send an email using SMTP. The backend works, and i can send emails via Swagger. But iExecute multiple steps with error checking [Answered]I have multiple steps that would be executed one by one with error checking after completing each stCoding winforms on ubuntu? is it possible now? if yes how?Can I work with winforms on ubuntu? I know winforms used to be limited to windows only, is it still System.Net.Sockets spookynessHello! : I've been tasked with updating our web app backend to .net 6 and I am almost done. HoweveINotifyDataErrorInfo helpWhen using the implementation for INotifyDataErrorInfo, is it possible when raising errors change evHow to pass value to parameter that require IEnumable string [Answered]Help me with the syntaxIs Array.Copy decent for copying sections of memory?I'm making a thing which relies pretty heavily on copying (not very large) sections of memory insideRelationship between Microsoft.AspNetCore.Identity.EntityFrameworkCore and AADHey guys, I read a bunch of Azure Active Directory documents and see that they recommend us not to sMSIX URI is inaccessible in AppinstallerHello, I have an Appinstaller and MSIX hosted in a public Google Cloud Storage bucket, meaning they