Merge lp://staging/~mardy/unity-webapps-qml/oa-api into lp://staging/unity-webapps-qml

Proposed by Alberto Mardegan
Status: Merged
Approved by: Alberto Mardegan
Approved revision: 89
Merged at revision: 88
Proposed branch: lp://staging/~mardy/unity-webapps-qml/oa-api
Merge into: lp://staging/unity-webapps-qml
Diff against target: 362 lines (+3/-288)
3 files modified
examples/api-bindings/online-accounts/www/js/app.js (+2/-2)
src/Ubuntu/UnityWebApps/UnityWebAppsBackendComponents.js (+1/-1)
src/Ubuntu/UnityWebApps/bindings/online-accounts/client/online-accounts.js (+0/-285)
To merge this branch: bzr merge lp://staging/~mardy/unity-webapps-qml/oa-api
Reviewer Review Type Date Requested Status
Alexandre Abreu (community) Approve
PS Jenkins bot (community) continuous-integration Approve
WebApps Pending
Review via email: mp+207180@code.staging.launchpad.net

Commit message

Return the full dictionary of authentication parameters.

It's important to return the full reply from the authentication plugin, because there's more than the OAuth token to be returned: for instance, when authenticating with OAuth 1.0a it's possible to retrieve also the secret token that the application will have to use to encrypt its requests, or other user information such as the username.
Also, returning only the access token breaks all authentication plugins other than OAuth-based ones (plain password, SASL, for instance).

Description of the change

Return the full dictionary of authentication parameters.

It's important to return the full reply from the authentication plugin, because there's more than the OAuth token to be returned: for instance, when authenticating with OAuth 1.0a it's possible to retrieve also the secret token that the application will have to use to encrypt its requests, or other user information such as the username.
Also, returning only the access token breaks all authentication plugins other than OAuth-based ones (plain password, SASL, for instance).

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alexandre Abreu (abreu-alexandre) :
review: Approve
89. By Alberto Mardegan

Remove unneeded APIs

Do not export those APIs which require write access to the accounts DB
(applications won't have it), as well as those classes which won't be useful
for application developers.

Revision history for this message
Alexandre Abreu (abreu-alexandre) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: