Esempio n. 1
0
        public bool VerifyPinForMultiFactor(VerifyPinRequest request)
        {
            var process = GetMutiFactorProcess(request.ProcessToken);

            Context.ThrowIfNull(process, ClientFaultCodes.ObjectNotFound, "Process", "Process not found or expired.");
            Context.ThrowIfEmpty(request.Pin, ClientFaultCodes.ValueMissing, "Pin", "Pin value missing.");
            return(_processService.SubmitPin(process, request.Pin));
        }
Esempio n. 2
0
        public void VerifyPin([FromBody] VerifyPinRequest request)
        {
            var session = OpContext.OpenSession();
            var process = GetActiveProcess(session, request.ProcessToken, confirmedOnly: false);

            OpContext.ThrowIfEmpty(request.Pin, ClientFaultCodes.ValueMissing, "pin", "Pin value missing");
            if (process != null)
            {
                ProcessService.SubmitPin(process, request.Pin);
            }
        }
Esempio n. 3
0
        public bool VerifyPinForMultiFactor(VerifyPinRequest request)
        {
            var session = Context.OpenSession();
            var process = GetMutiFactorProcess(session, request.ProcessToken);

            Context.ThrowIfNull(process, ClientFaultCodes.ObjectNotFound, "Process", "Process not found or expired.");
            Context.ThrowIfEmpty(request.Pin, ClientFaultCodes.ValueMissing, "Pin", "Pin value missing.");
            var result = _processService.SubmitPin(process, request.Pin);

            session.SaveChanges();
            return(result);
        }
Esempio n. 4
0
 public void VerifyPin(VerifyPinRequest request) {
   var process = GetActiveProcess(request.ProcessToken, confirmedOnly: false);
   Context.ThrowIfEmpty(request.Pin, ClientFaultCodes.ValueMissing, "pin", "Pin value missing");
   if(process != null) 
     _processService.SubmitPin(process, request.Pin);
 }