public override Task HandleAuthFailureEvent(BankIdAuthErrorEvent e)
        {
            var eventId = GetEventId(e);

            _logger.LogError(eventId, e.BankIdApiException, "BankID auth failed with the error '{ErrorCode}' and the details '{ErrorDetails}'", e.BankIdApiException.ErrorCode, e.BankIdApiException.ErrorDetails);
            _logger.LogTrace(eventId, "BankID auth failed for PersonalIdentityNumber '{PersonalIdentityNumber}' with the error '{ErrorCode}' and the details '{ErrorDetails}'", e.PersonalIdentityNumber?.To12DigitString() ?? MissingPersonalIdentityNumber, e.BankIdApiException.ErrorCode, e.BankIdApiException.ErrorDetails);
            return(Task.CompletedTask);
        }
 public override Task HandleAuthFailureEvent(BankIdAuthErrorEvent e)
 {
     return(Track(
                e,
                personalIdentityNumber: e.PersonalIdentityNumber,
                exception: e.BankIdApiException,
                detectedDevice: e.DetectedUserDevice,
                loginOptions: e.BankIdOptions
                ));
 }
Esempio n. 3
0
        public override Task HandleAuthFailureEvent(BankIdAuthErrorEvent e)
        {
            var properties = new Dictionary <string, string>();

            AddUserDeviceProperties(properties, e.DetectedUserDevice);

            return(Track(
                       e,
                       properties,
                       personalIdentityNumber: e.PersonalIdentityNumber,
                       exception: e.BankIdApiException
                       ));
        }