~gary-wzl77/account-plugins/mcloud-user-agent

Viewing all changes in revision 168.

  • Committer: Gary.Wzl
  • Date: 2016-08-29 02:06:03 UTC
  • Revision ID: gary.wang@canonical.com-20160829020603-6pu32y44rfadxbuw
add fixed userAgent. 

Currently, userAgent of oxide for touch contains 'Android' string. Cmcc authentication server will review IP address and login location for security reason in such a case. We also found that end-user who try to login outside of China are struggling with mcloud authentication. In most cases, after at least 5 times attempts, user can pass through it.
Adding user-agent makes the login from phone just like login from tablet or PC, which prevents cmcc authentication server from triggering such a secuery mechanism.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: