The Gaia source looks like a treasure trove of useful information. Thanks!  

_ michael

---
Michael Bishop
Hitpoint Studios
http://www.hitpointstudios.com


On Friday, June 28, 2013 at 10:25 AM, Luca Greco wrote:

> On Fri, Jun 28, 2013 at 4:08 PM, Michael Bishop <[email protected] 
> (mailto:[email protected])> wrote:
> > Hi All,
> >  
> > I've been working on getting my web app to authenticate with Twitter using 
> > OAuth. I've been able to use systemXHR to retrieve temporary tokens and 
> > have also been able to open a new webpage in my app that shows twitter's 
> > login page.
> >  
> > Now, after the user signs in, twitter wants to redirect that page to a 
> > callback url.
> >  
> > 1. How do I make that callback url show my app?
> > 2. How do I, within my app, retrieve the authentication token (which is a 
> > parameter that twitter appends to the callbackURL)
> >  
>  
> I've never tried directly yet, but App Manifest doc page on MDN seems to 
> describe a "redirects" manifest attribute to cover this use case:
>  
> - https://developer.mozilla.org/en-US/docs/Web/Apps/Manifest#redirects
>  
> As an real usage example, you can take a look to the "communication gaia app" 
> which use redirects to connect
> Facebook using OAuth:
>  
> - 
> https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/manifest.webapp#L141
> - 
> https://github.com/mozilla-b2g/gaia/tree/master/apps/communications/redirects
>  
> I hope this helps,
> Luca
>  
> --  
> Luca Greco @ Alca Società Cooperativa  

_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to