Re: iOS redirect / rendering problem

Bob Nemec <[email protected]> Tue, 2 Aug 2022 18:25:59 +0000 (UTC)
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
--===============8318137122727705645==
Content-Type: multipart/alternative; 
	boundary="----=_Part_345325_1223636498.1659464759116"

------=_Part_345325_1223636498.1659464759116
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

=20
Hey Karsten,Trying to find the difference between the two responses is wher=
e I stuck now: from what I can see they are the same... the normal expected=
 rendered content in each case. Just that in the iOS example, the Seaside r=
edirect that answers the content does not happen.=C2=A0
And it is also where my Seaside internal knowledge stops: I do not yet know=
 how Seaside triggers each render redirect. I thought it answered a 302 res=
ponse, but the content I trace shows a 200 / OK response. Once I understand=
 how the redirect is code, I figure I can try changes to make iOS happy.
Bob    On Tuesday, August 2, 2022 at 10:31:36 a.m. EDT, Karsten Kusche <kar=
[email protected]> wrote: =20
=20
  #yiv4522199473 body{font-family:Helvetica, Arial;font-size:13px;}Hi Bob,
what=E2=80=99s the content produced by the render-phase that=E2=80=99d init=
iate the following callback-phase?
Kind RegardsKarsten
=E2=80=94=C2=A0
Georg Heeg eKWallstra=C3=9Fe 22
06366 K=C3=B6then

Tel.: 03496/214328
FAX: 03496/214712
Amtsgericht Dortmund HRA 12812


Am 2. August 2022 um 15:40:47, Bob Nemec ([email protected]) schrieb:

fwiw: looking at WARenderPhaseContinuation>>processRendering: I see the sam=
e content for both the iOS and Windows initial request. And I see that with=
 iOS the following WACallbackProcessingActionContinuation does not happen, =
as it does with Windows... that's where I'm stuck.

Bob
On Saturday, July 30, 2022 at 11:00:00 a.m. EDT, Bob Nemec <[email protected]=
> wrote:

Thanks... I set up to do the debugging, and it turns out that the problem a=
lso happens with Safari on a mac (but not Chrome). That makes it easier to =
work with. On an iPhone and iPad the problem happens with any browser.=C2=
=A0
Bob=C2=A0

On Saturday, July 30, 2022 at 10:18:13 a.m. EDT, Karsten Kusche <karsten@he=
eg.de> wrote:

Hi Bob,
when you plug your iOS device into a USB cable and connect it to a mac, the=
n you can go to Mac-Safari -> debug menu -> 3rd or 4th entry in the menu sh=
ould be the name of your device. There you can open the debugger on a tab o=
f your iOS Safari and debug everything from the Browser side.
Maybe it helps already.
Kind RegardsKarsten
=E2=80=94=C2=A0
Georg Heeg eKWallstra=C3=9Fe 22
06366 K=C3=B6then

Tel.: 03496/214328
FAX: 03496/214712
Amtsgericht Dortmund HRA 12812


Am 30. Juli 2022 um 15:59:56, Bob Nemec ([email protected]) schrieb:

We're having a problem with physical iOS devices (works fine on Chrome virt=
ual device) where a final Seaside redirect is not happening after an Azure =
SSO redirect.=C2=A0I'd like to understand what triggers the Seaside redirec=
t: I can see it in normal rendering, but I've never had to dig into it like=
 this before.=C2=A0
When I log from a non-iOS device I see...1: WAApplication>>handleFiltered: =
application URL=C2=A0 - self requestContext redirectTo: 'https://login.micr=
osoftonline.com/...'=C2=A0=C2=A0 - redirects back to our app URL with an ac=
cess token2: WAApplication>>handleFiltered: application URL with MS access =
token & no _s & _k values=C2=A0=C2=A0 - validate token with Azure=C2=A0=C2=
=A0 - save user info in new WASession=C2=A0=C2=A0 - finish render3: WAAppli=
cation>>handleFiltered: application URL with _s & _k plus callback values l=
ike: &2=3D2160&1=3D3840&3=3Dfalse=C2=A0=C2=A0 - WAResponse>>location: appli=
cation URL with _s & new _k and no callback values=C2=A04: WAApplication>>h=
andleFiltered: application URL with _s & _K=C2=A0=C2=A0 - finish render=C2=
=A0=C2=A0With iOS step 3 does not happen; I'd like to know what triggers it=
 normally.=C2=A0
Just to add to the fun, we have a two WAApplication registered. The default=
 application fails on iOS, the other works fine. I can see no obvious diffe=
rence between the two.=C2=A0
Thanks for any help (I'll cross post on the the Seaside mailing list and Di=
scord)
Bob Nemec

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

 =20
------=_Part_345325_1223636498.1659464759116
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><div class=3D"ydp6d3473eyahoo-style-wrap" style=3D=
"font-family:lucida console, sans-serif;font-size:13px;"><div></div>
        <div><br></div><div dir=3D"ltr" data-setdir=3D"false">Hey Karsten,<=
/div><div dir=3D"ltr" data-setdir=3D"false">Trying to find the difference b=
etween the two responses is where I stuck now: from what I can see they are=
 the same... the normal expected rendered content in each case. Just that i=
n the iOS example, the Seaside redirect that answers the content does not h=
appen.&nbsp;</div><div dir=3D"ltr" data-setdir=3D"false"><br></div><div dir=
=3D"ltr" data-setdir=3D"false">And it is also where my Seaside internal kno=
wledge stops: I do not yet know how Seaside triggers each render redirect. =
I thought it answered a 302 response, but the content I trace shows a 200 /=
 OK response. Once I understand how the redirect is code, I figure I can tr=
y changes to make iOS happy.</div><div dir=3D"ltr" data-setdir=3D"false"><b=
r></div><div dir=3D"ltr" data-setdir=3D"false">Bob</div>
       =20
        </div><div id=3D"yahoo_quoted_0028364632" class=3D"yahoo_quoted">
            <div style=3D"font-family:'Helvetica Neue', Helvetica, Arial, s=
ans-serif;font-size:13px;color:#26282a;">
               =20
                <div>
                    On Tuesday, August 2, 2022 at 10:31:36 a.m. EDT, Karste=
n Kusche &lt;[email protected]&gt; wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id=3D"yiv4522199473">

=20
<style>#yiv4522199473 body{font-family:Helvetica, Arial;font-size:13px;}</s=
tyle>

<div>
<div style=3D"font-family:Helvetica, Arial;font-size:13px;">Hi Bob,</div>
<div style=3D"font-family:Helvetica, Arial;font-size:13px;"><br>
</div>
<div style=3D"font-family:Helvetica, Arial;font-size:13px;">what=E2=80=99s =
the content produced by the render-phase that=E2=80=99d initiate the follow=
ing callback-phase?</div>
<div><br>
</div>
Kind Regards
<div>Karsten<br>
<div class=3D"yiv4522199473gmail_signature">
<div>=E2=80=94&nbsp;</div>
<div><br>
<span style=3D"white-space:pre-wrap;font-family:-apple-system;font-size:14p=
x;">Georg Heeg eK</span></div>
<div>
<div style=3D"font-family:-apple-system;font-size:14px;" class=3D"yiv452219=
9473gmail_signature yiv4522199473amz_quote_hidden">
<pre style=3D"white-space:pre-wrap;word-wrap:break-word;">Wallstra=C3=9Fe 2=
2
06366 K=C3=B6then

Tel.: 03496/214328
FAX: 03496/214712
Amtsgericht Dortmund HRA 12812</pre>
<div><br>
</div>
</div>
</div>
</div>
<br>
<p class=3D"yiv4522199473airmail_on">Am 2. August 2022 um 15:40:47, Bob Nem=
ec (<a rel=3D"nofollow noopener noreferrer" ymailto=3D"mailto:[email protected]=
om" target=3D"_blank" href=3D"mailto:[email protected]">[email protected]</a>) =
schrieb:</p>
<blockquote type=3D"cite" class=3D"yiv4522199473clean_bq"><span>
<div>
<div></div>
<div>
<div style=3D"font-family:lucida console, sans-serif;font-size:13px;" class=
=3D"yiv4522199473ydp5d34f259yahoo-style-wrap">
<div></div>
<div dir=3D"ltr"><span>fwiw: looking at WARenderPhaseContinuation&gt;&gt;pr=
ocessRendering: I see the same content for both the iOS and Windows initial=
 request. And I see that with iOS the following WACallbackProcessingActionC=
ontinuation does not
 happen, as it does with Windows... that's where I'm stuck.</span><br>
</div>
<div dir=3D"ltr"><span><br>
</span></div>
<div dir=3D"ltr"><span>Bob</span></div>
<div><br>
</div>
</div>
<div id=3D"yiv4522199473yahoo_quoted_9856867607" class=3D"yiv4522199473yaho=
o_quoted">
<div style=3D"font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;fo=
nt-size:13px;color:#26282a;">
<div>On Saturday, July 30, 2022 at 11:00:00 a.m. EDT, Bob Nemec &lt;bobn@ro=
gers.com&gt; wrote:
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div id=3D"yiv4522199473">
<div>
<div style=3D"font-family:lucida console, sans-serif;font-size:13px;" class=
=3D"yiv4522199473ydpc587fd8cyahoo-style-wrap">
<div></div>
<div dir=3D"ltr">Thanks... I set up to do the debugging, and it turns out t=
hat the problem also happens with Safari on a mac (but not Chrome). That ma=
kes it easier to work with. On an iPhone and iPad the problem happens with =
any browser.&nbsp;</div>
<div dir=3D"ltr"><br clear=3D"none">
</div>
<div dir=3D"ltr">Bob&nbsp;</div>
<div dir=3D"ltr"><br clear=3D"none">
</div>
<div><br clear=3D"none">
</div>
</div>
<div id=3D"yiv4522199473yqt14034" class=3D"yiv4522199473yqt6134072332">
<div id=3D"yiv4522199473yahoo_quoted_9780766574" class=3D"yiv4522199473yaho=
o_quoted">
<div style=3D"font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;fo=
nt-size:13px;color:#26282a;">
<div>On Saturday, July 30, 2022 at 10:18:13 a.m. EDT, Karsten Kusche &lt;ka=
[email protected]&gt; wrote:
</div>
<div><br clear=3D"none">
</div>
<div><br clear=3D"none">
</div>
<div>
<div id=3D"yiv4522199473">
<div>
<div style=3D"font-family:Helvetica, Arial;font-size:13px;">Hi Bob,</div>
<div style=3D"font-family:Helvetica, Arial;font-size:13px;"><br clear=3D"no=
ne">
</div>
<div style=3D"font-family:Helvetica, Arial;font-size:13px;">when you plug y=
our iOS device into a USB cable and connect it to a mac, then you can go to=
 Mac-Safari -&gt; debug menu -&gt; 3rd or 4th entry in the menu should be t=
he name of your device. There you can open
 the debugger on a tab of your iOS Safari and debug everything from the Bro=
wser side.</div>
<div style=3D"font-family:Helvetica, Arial;font-size:13px;"><br clear=3D"no=
ne">
</div>
<div style=3D"font-family:Helvetica, Arial;font-size:13px;">Maybe it helps =
already.</div>
<div style=3D"font-family:Helvetica, Arial;font-size:13px;"><br clear=3D"no=
ne">
</div>
<div style=3D"font-family:Helvetica, Arial;font-size:13px;">Kind Regards</d=
iv>
<div style=3D"font-family:Helvetica, Arial;font-size:13px;">Karsten</div>
<br clear=3D"none">
<div class=3D"yiv4522199473gmail_signature">
<div>=E2=80=94&nbsp;</div>
<div><br clear=3D"none">
<span style=3D"white-space:pre-wrap;font-family:-apple-system;font-size:14p=
x;">Georg Heeg eK</span></div>
<div>
<div style=3D"font-family:-apple-system;font-size:14px;" class=3D"yiv452219=
9473gmail_signature yiv4522199473amz_quote_hidden">
<pre style=3D"white-space:pre-wrap;word-wrap:break-word;">Wallstra=C3=9Fe 2=
2
06366 K=C3=B6then

Tel.: 03496/214328
FAX: 03496/214712
Amtsgericht Dortmund HRA 12812</pre>
<div><br clear=3D"none">
</div>
</div>
</div>
</div>
<br clear=3D"none">
<p class=3D"yiv4522199473airmail_on">Am 30. Juli 2022 um 15:59:56, Bob Neme=
c (<a rel=3D"nofollow noopener noreferrer" shape=3D"rect" ymailto=3D"mailto=
:[email protected]" target=3D"_blank" href=3D"mailto:[email protected]">bobn@ro=
gers.com</a>) schrieb:</p>
<blockquote type=3D"cite" class=3D"yiv4522199473clean_bq"><span></span>
<div>
<div></div>
<div>
<div id=3D"yiv4522199473yqt57178" class=3D"yiv4522199473yqt1347953698">
<div style=3D"font-family:lucida console, sans-serif;font-size:13px;" class=
=3D"yiv4522199473yahoo-style-wrap">
<div dir=3D"ltr">
<div>
<div>We're having a problem with physical iOS devices (works fine on Chrome=
 virtual device) where a final Seaside redirect is not happening after an A=
zure SSO redirect.&nbsp;</div>
<div>I'd like to understand what triggers the Seaside redirect: I can see i=
t in normal rendering, but I've never had to dig into it like this before.&=
nbsp;</div>
<div><br clear=3D"none">
</div>
<div>When I log from a non-iOS device I see...</div>
<div>1: WAApplication&gt;&gt;handleFiltered: application URL</div>
<div>&nbsp; - self requestContext redirectTo: 'https://login.microsoftonlin=
e.com/...'&nbsp;</div>
<div>&nbsp; - redirects back to our app URL with an access token</div>
<div>2: WAApplication&gt;&gt;handleFiltered: application URL with MS access=
 token &amp; no _s &amp; _k values&nbsp;</div>
<div>&nbsp; - validate token with Azure&nbsp;</div>
<div>&nbsp; - save user info in new WASession&nbsp;</div>
<div>&nbsp; - finish render</div>
<div>3: WAApplication&gt;&gt;handleFiltered: application URL with _s &amp; =
_k plus callback values like: &amp;2=3D2160&amp;1=3D3840&amp;3=3Dfalse&nbsp=
;</div>
<div>&nbsp; - WAResponse&gt;&gt;location: application URL with _s &amp; new=
 _k and no callback values&nbsp;</div>
<div>4: WAApplication&gt;&gt;handleFiltered: application URL with _s &amp; =
_K&nbsp;</div>
<div>&nbsp; - finish render</div>
<div>&nbsp;&nbsp;</div>
<div>With iOS step 3 does not happen; I'd like to know what triggers it nor=
mally.&nbsp;</div>
<div><br clear=3D"none">
</div>
<div>Just to add to the fun, we have a two WAApplication registered. The de=
fault application fails on iOS, the other works fine. I can see no obvious =
difference between the two.&nbsp;</div>
<div><br clear=3D"none">
</div>
<div>Thanks for any help (I'll cross post on the the Seaside mailing list a=
nd Discord)</div>
</div>
<div><br clear=3D"none">
</div>
<div dir=3D"ltr">Bob Nemec</div>
<div dir=3D"ltr"><br clear=3D"none">
</div>
<br clear=3D"none">
</div>
</div>
</div>
_______________________________________________<br clear=3D"none">
seaside mailing list<br clear=3D"none">
[email protected]<br clear=3D"none">
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br clear=
=3D"none">
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id=3D"yiv4522199473yqt65585" class=3D"yiv4522199473yqt6134072332">____=
___________________________________________<br clear=3D"none">
seaside mailing list<br clear=3D"none">
<a rel=3D"nofollow noopener noreferrer" shape=3D"rect" ymailto=3D"mailto:se=
[email protected]" target=3D"_blank" href=3D"mailto:seaside@=
lists.squeakfoundation.org">[email protected]</a><br clear=
=3D"none">
<a rel=3D"nofollow noopener noreferrer" shape=3D"rect" target=3D"_blank" hr=
ef=3D"http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">h=
ttp://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br cl=
ear=3D"none">
</div>
</div>
</div>
</div>
_______________________________________________<br>
seaside mailing list<br>
[email protected]<br>
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>
</div>
</div>
</span></blockquote>
</div>
</div>

</div></div>
            </div>
        </div></body></html>
------=_Part_345325_1223636498.1659464759116--

--===============8318137122727705645==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18Kc2Vhc2lkZSBt
YWlsaW5nIGxpc3QKc2Vhc2lkZUBsaXN0cy5zcXVlYWtmb3VuZGF0aW9uLm9yZwpodHRwOi8vbGlz
dHMuc3F1ZWFrZm91bmRhdGlvbi5vcmcvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL3NlYXNpZGUK

--===============8318137122727705645==--