Merge lp://staging/~gary-wzl77/account-plugins/mcloud-plugin-lp1587282 into lp://staging/account-plugins
Proposed by
Gary.Wang
Status: | Merged |
---|---|
Merged at revision: | 171 |
Proposed branch: | lp://staging/~gary-wzl77/account-plugins/mcloud-plugin-lp1587282 |
Merge into: | lp://staging/account-plugins |
Prerequisite: | lp://staging/~mardy/account-plugins/owncloud-1570986 |
Diff against target: |
594 lines (+493/-0) 11 files modified
.bzrignore (+1/-0) Makefile.am (+2/-0) configure.ac (+15/-0) data/providers/mcloud.provider.in.in (+29/-0) debian/account-plugin-mcloud.install (+4/-0) debian/control (+8/-0) debian/rules (+2/-0) qml/mcloud/ErrorItem.qml (+48/-0) qml/mcloud/Main.qml (+7/-0) qml/mcloud/OAuth.qml (+283/-0) qml/mcloud/WebView.qml (+94/-0) |
To merge this branch: | bzr merge lp://staging/~gary-wzl77/account-plugins/mcloud-plugin-lp1587282 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alberto Mardegan (community) | Needs Information | ||
Review via email: mp+296088@code.staging.launchpad.net |
This proposal supersedes a proposal from 2016-05-31.
Commit message
Add mcloud plugin.
Description of the change
Add mcloud plugin
Testing instructions:
1) manually install the account-
2) download and install mcloud scope package from
https:/
3) launch mcloud scope and click "Login to MCloud"
To post a comment you must log in.
Hi Gary, thanks for this plugin!
Do you have a link to the OAuth documentation for mccloud? Better if in English :-)
I don't believe that mccould OAuth implementation is special; what you have coded as WORKAROUND 1 & 2 seem to be the normal web flow. I think you can remove those two workarounds, and just change the .provider file by replacing "user_agent" with "web_server", then add your ClientSecret in there too, and it should work.
Once you get it to work, can you also try removing the "DisableStatePa rameter" option, and see if it continues working? It's preferable not to use that option, because it disables a security feature.
As for the user agent, could you please file a bug against https:/ /launchpad. net/ubuntu/ +source/ webbrowser- app and ask for a user-agent override to be added in Ubuntu.WebView?
If we manage to get all the above done, then we won't need any workarounds in the plugin, and we can avoid duplicating the code here. :-)