Cannot access K2 mobile app using iOS device with "Could not authenticate" error

  • 7 March 2016
  • 0 replies
  • 10 views

Badge +15


 

Symptoms


I got an error message "Could not authenticate" after trying to login K2 Mobile application using iOS devices

I can successfully login using Andriod 5.1.1 mobile device.

Could you please suggest the configurations I should look for?

- K2 blackpearl 4.6.10 (4.12060.1690.2)
- K2 smartforms 4.6.10 (4.12165.1700.2)
- iOS 9.2, 8.2, 8.4
- Android 5.1.1


 

Diagnoses


User is using SQLUM. In the [CustomUM].[User] table, user has a requirement to set UserName field to a email address. However, due to testing, the UserName field and UserEmail field use different email addresses. Testing shows that if the UserName field is an email address, and the UserEmail field is set to a different email address, the authentication for iOS app will fail immediately. According to labs, this is a deliberate attempt in order to circumvent an iOS bug, where another user is able to access the data of a previous user that has logged out.
 

Resolution

Two solutions:

1. Make sure in [CustomUM].[User] table, UserName and UserEmail are set to the same email, or

2. for UserName field, use the user's name instead of an email address. That way you can set the UserEmail to any email address you want




 

0 replies

Be the first to reply!

Reply