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);
            }
        }
예제 #3
0
 public void RegisterPreAuthHandler(PaDataType type, PreAuthHandlerConstructor builder)
 {
     preAuthHandlers[type] = builder;
 }