[
https://issues.apache.org/jira/browse/WOOKIE-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497452#comment-13497452
]
Scott Wilson commented on WOOKIE-385:
-------------------------------------
Thanks Matthias :)
> Improve integration of oAuth authorization into workflow
> --------------------------------------------------------
>
> Key: WOOKIE-385
> URL: https://issues.apache.org/jira/browse/WOOKIE-385
> Project: Wookie
> Issue Type: Improvement
> Components: Feature Management
> Reporter: Matthias Niederhausen
> Priority: Minor
> Fix For: 0.13.0
>
> Original Estimate: 5h
> Remaining Estimate: 5h
>
> The oAuth authorization step could be better integrated into widgets'
> workflows. Two different actions could be taken:
> 1. Allow to show the authorization page in an iframe. The iframe could be
> shown as an overlay within the widget and not as a popup (which disrupts and
> also has usability issues on mobile devices).
> 2. Offer developers some callback function when calling oAuth.authenticate()
> that is called when the process has completed. For my widget, I am currently
> using the construct:
> oAuth.authenticate();
>
> var timer = setInterval(function() {
> if (oAuth.status == "F") {
> alert("Could not load contacts.");
> clearInterval(timer);
> }
> else if (oAuth.status == "A") {
> loadGoogleContacts();
> clearInterval(timer);
> }
> }, 500);
> Usually, one wants to load data immediately after access has been granted (or
> denied). I guess that other developers will want something similar, so maybe
> integrate it into the oAuth library?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira