Comment 1 for bug 977787

Revision history for this message
Emanuele Quinto (emanuele-quinto) wrote :

In a javascript application I had to remove the encoding:

This doesn't work:

<code>
function registerToken(secrets, user) {
  var url = "https://one.ubuntu.com/oauth/sso-finished-so-get-tokens/" + encodeURIComponent(user);
  reg = oAuthRequest(url, secrets);

  return reg;
}
</code>

This works:

<code>
function registerToken(secrets, user) {
  var url = "https://one.ubuntu.com/oauth/sso-finished-so-get-tokens/" + user;
  reg = oAuthRequest(url, secrets);

  return reg;
}
</code>