private async Task InvokePreAuthHandler( KrbKdcReq asReq, IKerberosPrincipal principal, List <KrbPaData> preAuthRequirements, PreAuthHandlerConstructor func ) { var handler = func(RealmService); var preAuthRequirement = await handler.Validate(asReq, principal); if (preAuthRequirement != null) { preAuthRequirements.Add(preAuthRequirement); } }
private async Task InvokePreAuthHandler( KrbKdcReq asReq, PreAuthenticationContext preauth, List <KrbPaData> preAuthRequirements, PreAuthHandlerConstructor func ) { var handler = func(RealmService); var preAuthRequirement = await handler.Validate(asReq, preauth); if (preAuthRequirement != null) { preAuthRequirements.Add(preAuthRequirement); } }
public void RegisterPreAuthHandler(PaDataType type, PreAuthHandlerConstructor builder) { preAuthHandlers[type] = builder; }