Matthias Niederhausen created WOOKIE-385:
--------------------------------------------

             Summary: 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
    Affects Versions: 0.14.0
            Reporter: Matthias Niederhausen
            Priority: Minor


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

Reply via email to