Method to 'tell Ubuntu One about the newly created SSO token' incorrectly states the email address must be URL encoded. It won't work unless the email address is /not/ URL encoded.
Bug #977787 reported by
Chris C Moore
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu One Developer Website |
Fix Released
|
Undecided
|
James Henstridge |
Bug Description
I've spent many, many hours trying to get an application to 'tell Ubuntu One about the newly created SSO token' using the method described on the developer API:
GET https:/
Tell Ubuntu One about the newly created SSO token. Email address must be URL-encoded (so first.last%
Nothing appeared to be working until I spotted that this script doesn't actually URL encode the email address at all: http://
Changing my code to skip the URL encoding bit works as expected.
To post a comment you must log in.
In a javascript application I had to remove the encoding:
This doesn't work:
<code> secrets, user) { /one.ubuntu. com/oauth/ sso-finished- so-get- tokens/" + encodeURICompon ent(user) ;
function registerToken(
var url = "https:/
reg = oAuthRequest(url, secrets);
return reg;
}
</code>
This works:
<code> secrets, user) { /one.ubuntu. com/oauth/ sso-finished- so-get- tokens/" + user;
function registerToken(
var url = "https:/
reg = oAuthRequest(url, secrets);
return reg;
}
</code>