Can't get redirect to work work in manifest.webapp

Content-Type: text/plain; charset=ISO-8859-1

I'm building an OAuth2 browser auth dialog in FxOS 2.0.0 and following the
instructions here:

"redirects": [
  {"from": "",
    "to": "/oauth-close.html"}

I've got it working on a regular browser perfectly. For the Firefox OS
version I swap out the real domain with the fake as seen here:

var myAppId = '1234567890';
var myAppDomain = '';
var requestedScope = 'me';

var url = ''
  + '?response_type=token'
  + '&client_id=' + myAppId
  + '&redirect_uri=' + myAppDomain + '?type=/auth/ldsconnect/callback/'
  + '&scope=' + encodeURIComponent(requestedScope)
  + '&state=' + Math.random().toString().replace(/^0./, '')
  ;, 'ldsconnectLogin', 'height=720,width=620');

But it never captures the redirect. It tries to go to, which,
as we all know, doesn't exist.

Is there a working example app that shows how to do this? Or is there
something wrong here?

AJ ONeal

Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I&#39;m building an OAuth2 browser auth dialog in FxO=
S 2.0.0 and following the instructions here:</div><div><br></div><div><a hr=
ef=3D"" ta=
irects</a><br></div><div><br></div><div><pre style=3D"margin-top:0px;margin=
-bottom:20px;padding:1em;border-width:0px 0px 0px 6px;border-left-style:sol=
e Mono&#39;,monospace;font-size:14px;line-height:19px;color:rgb(77,78,83);o=
verflow:auto;direction:ltr;word-break:normal;background:url(https://develop= 50% 0% rgb(250,251,252)"><=
code style=3D"margin:0px;padding:0px;border:0px;font-style:inherit;font-wei=
ght:inherit;font-family:Consolas,Monaco,&#39;Andale Mono&#39;,monospace;dir=
ection:ltr;word-spacing:normal;word-break:normal">&quot;redirects&quot;: [
  {&quot;from&quot;: &quot;<span style=3D"font-family:Consolas,&#39;Liberat=
ion Mono&#39;,Menlo,Courier,monospace;font-size:13.6000003814697px;line-hei=
-spacing:normal;background-color:transparent"><a href=3D"
/firefoxos-redirect.html" target=3D"_blank">
direct.html</a></span><span style=3D"font-style:inherit;font-weight:inherit=
;word-spacing:normal">&quot;,</span><br>    &quot;to&quot;: &quot;/oauth-cl=
]</code></pre></div><div><br></div><div>I&#39;ve got it working on a regula=
r browser perfectly. For the Firefox OS version I swap out the real domain =
with the fake <a href=3D"" target=3D"_blank"><=
/a> as seen here:</div><div><br></div><div><br></div><div><pre style=3D"ove=
rflow:auto;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,mon=
rmal;color:rgb(51,51,51);background-color:rgb(247,247,247)"><code style=3D"=
font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font=
height:inherit;word-wrap:normal;background:transparent">var myAppId =3D &#3=
var myAppDomain =3D &#39;<a href=3D"
tml" target=3D"_blank"></a>&#39;;
var requestedScope =3D &#39;me&#39;;

var url =3D &#39;<a href=3D"" target=
  + &#39;?response_type=3Dtoken&#39;
  + &#39;&amp;client_id=3D&#39; + myAppId
  + &#39;&amp;redirect_uri=3D&#39; + myAppDomain + &#39;?type=3D/auth/ldsco=
  + &#39;&amp;scope=3D&#39; + encodeURIComponent(requestedScope)
  + &#39;&amp;state=3D&#39; + Math.random().toString().replace(/^0./, &#39;=
  ;, &#39;ldsconnectLogin&#39;, &#39;height=3D720,width=3D620&#=
39;);</code></pre></div><div>But it never captures the redirect. It tries t=
o go to <a href=3D""></a>, which, as we all kn=
ow, doesn&#39;t exist.</div><div><br></div><div>Is there a working example =
app that shows how to do this? Or is there something wrong here?</div><div>=
<br></div><div><div>AJ ONeal<br></div></div>

3/23/2015 12:54:00 AM 4036 articles. 0 followers. Post Follow

0 Replies

Similar Articles

[PageSpeed] 6
Get it on Google Play
Get it on Apple App Store


Similar Artilces:

Can't get it to work. Can't get help.
Name: Tony Clarke Email: minionataondotat Product: Thunderbird Summary: Can't get it to work. Can't get help. Comments: Installed T'bird. Had to change defunct server that T'bird selected by default. Kept asking for passwords associated with previous email (Outlook Express ), when passwords entered then got error messages saying aon responded with 're-authentification failure'. Searched your knowledge base & help forums to no avail. Found them very user-unfriendly & ended up more confused than before. Would like to try T'bird, but I think ...

I can't get no cache, I can't get no cache. 'Cause I try and I try and I try and, I can't get no, I can't get no cache.
I have fiddled out for days tinkering with the setting in about:config trying to get FireFox 12 to use the disk cache. I have NOT found the trick. This One Trick Pony ain't doing it like it used to up until recently. Pray tell anyone, What information can I share that will point a knowledgeable person to aid me in getting FF to disk.cache? I have also tried restarting FF with add-ons disabled, (There were NOT too many to do this to, so it was quick and easy) Here is my stab at trying to convey the information that MIGHT govern matters Using about:cache Informatio...

Re: I can't get no cache, I can't get no cache. ' Cause I try and I try and I try and, I can't get no, I can't get no cache.
<div>please com e see me about htis<br /> <br /> ------- Original Message f= rom the Global Relay Archive -------<br /> From: Hp &lt;;= <br /> To: "" &lt;;<br /> Sent: Sun, 27 May 2012 18:30:18 -0700<br /> Subject: I = can't get no cache, I can't get no cache. 'Cause I try and I try and I try = and, I can't get no, I can't get no cache.<br /> <br /></div> <pre class=3D"gr-maex-body-pre&qu...

Can't get the Web Controls to work.. The Build.Bat file doesn't work? HELP>> ARGGG>.
Hi.. I was wanting to use the IE Web Controls, the Tab Strip, etc, and play with it.. Since I have IIS 5, I thought I'd copy them there using the Read me.txt instructions and then copy to a dev server that I use at a web host.. Well, everything worked except the Build file doesn't build the Microsoft.UI.Webcontrols.DLL file? When I try to run it by double clicking on it, it runs really fast in  the DOS window, but I can't see what it says and it closes.. So I tried to do so manually and I received an error that the "cse.exe is not recognized as an internal or external command or batch...

Desperate!!!! -- can't get DNN4 with sqlexpress2005 to work on winxp --- can't connect to DB!!!!!
HELP!!!!! HELP!!!!I followed the install guide for DNN4 (install version)...but it doesn't work with SQL 2005 express on Win XP...i have tried everything!! below is the error message and the connection strings...HELP!!!   Error Installing DotNetNukeCurrent Assembly Version: 04.00.00ERROR: Could not connect to database specified in connectionString for SqlDataProviderSystem.Data.SqlClient.SqlException: Unable to open the physical file "C:\dotnetnuke\App_Data\dotnetnuke.mdf". Operating system error 5: "5(Access is denied.)". An attempt to attach an auto-named database for file C:\dotne...

Debian Woody, two problems: can't get kppp to work and can't su in X
Hello, I have Debian Woody installed on this Dell i8100 laptop via Libranet 2.0. I have two hurdles left that I can't seem to overcome. 1. I can't get kppp to work. I always get the following error message: Apr 27 19:38:48 libranet pppd[622]: The remote system is required to authenticate itself Apr 27 19:38:48 libranet pppd[622]: but I couldn't find any suitable secret (password) for it to use to do so. Apr 27 19:38:48 libranet pppd[622]: (None of the available passwords would let it use an IP address.) Exit Status From 'man pppd': 1 An immediately f...

I can't seem to get a skin to work in 3.0.13 that worked fine in 2.1.2. I know I'm doing *something* wrong, but after two weeks of trying, I'm stumped...
Yiikes.  Back again.  I am having the strangest things happen with my skins now.  Images specified in a css file no longer show up.  When I enter a specific path into my ascx file (assuming the skin folder as the root directory), and upload the skin, to me, it appears to not be parsing at all.  When I 'Apply' the skin, any of my skins, I get nothing.  If I add the above image file to the ascx file, upload, parse and apply, I get an 'x' bad image, and when I click properties, the location of the image file is stating it is in the dotnetnuke/ rooot folder....

Installation 'Sybase DataWindow PS' printer on W98 doesn't work (so PDF export can't work either)
I have a problem with export DataWindow content to PDF on W98 systems. (I don't have any problem with PDF export on other systems like as WINNT, W2K, WXP). I found out that the problem is in the Sybase DataWindow PS printer. It looks like installed but it DOESN'T WORK on W98. When I try print something on this printer then no PostScript file is created. So I tried manual installation of it but it occurs an error during manual installation (I used description of instalation from Bruce Armstrong). The error said that printer driver (PSCRIPT.DLL) can't be loaded. I use...

Can't get a redirect to work
I'm having a problem with a redirect.  I don't think it's a code problem, I think it's a permissions thing.I have a C#/ASP application that uses an ASP page to do a login.  It checks the user and password against a SQL database. Upon passing the password check it does a redirect to an HTML page.It gets through everything except the redirect when I am accessing the page from a remote computer.  I can access the login page, I can browse the directories (I enabled that while trying to figure this out) I can even raise the HTML page directly (it doesn't operate because when I open...

Two things,Why do I keep getting emails that I don't want. can't get rid of them? Why can't I get my email when I am out of town? Or can I?
Name: Ed Leech Email: ELCraftatzoominternetdotnet Product: Thunderbird Summary: Two things,Why do I keep getting emails that I don't want. can't get rid of them? Why can't I get my email when I am out of town? Or can I? Comments: I am getting frusted with all the emails coming in that I do not want, I am using the tools to get thme out but they keep coming. They just use different names or whatever. I have been thinking of just switching to something else but my business intrusts know this email and it is tooo confusing to change. Every time I go out of town on bu...

Firefox won't load; can't get it to work!
Name: Robbie Email: torocityatgmaildotcom Product: Firefox Summary: Firefox won't load; can't get it to work! Comments: I'm running Windows 7, and I can't get Firefox 3.6 to work. I get the following message when I try to run it: We're sorry. Firefox had a problem and crashed. We'll try to restore your tabs and windows when it restarts. To help us diagnose and fix the problem, you can send us a crash report. I've tried to reinstall, to run in Safe Mode, and to do the dozens of things suggested on the Internet, but I can't run Firefo...

Using profiles
Hi All This might be long with all the bits I have to add. At Home I am useing Vista with SQL Express and SQL Developers server and Visual Studio 2008 (full product) I have a web site which i want to run on a windows server. I t all works fine on my machine at home which is set up to mirroe the physical path of the server. When I upload the site with the profiles included I get an error message headed A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct...

Can't get Lightning 0.5 nor .07 pre working @work
This is a multi-part message in MIME format. --------------040006070304090509030109 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I can't seem to get either 0.5 nor 0.7 pre (BTW I'm liking 0.7 pre) working at work. I use WebDAV calendars served from my home server. 0.3 seems to work OK but not 0.5 and greater. Note that "work" is relatively secured so it might be a security/proxy issue ('cept 0.3 seems to work...). And what I mean by "not work" is that after installing 0.5 or greater and restarting T...

can't get reports 'Old Chart's and 'New Charts' to work properly
1. If I try and draw a chart it doesn't go beyond June of this year so I'm missing a lot of data in the output. 2. Is there a reason for this - I have been modding bugzilla so that it has an extra status field from earlier this year - would that have had an impact ? 3. Also when I try and do a Old Chart or NewChart I can't see my new 'Status' field to select - this is ok if I do a bar chart though. cheers On Mon, 2011-12-05 at 03:25 -0800, wrote: > 1. If I try and draw a chart it doesn't go beyond June of this year so &g...

Web resources about - Can't get redirect to work work in manifest.webapp -

Resources last updated: 12/24/2015 10:43:21 PM