Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to logon using phone to email.local.a2p3:8080 #6

Closed
GregTurner opened this issue Jan 17, 2013 · 4 comments
Closed

unable to logon using phone to email.local.a2p3:8080 #6

GregTurner opened this issue Jan 17, 2013 · 4 comments

Comments

@GregTurner
Copy link
Contributor

In short, sessions are lost if invoking the Agent on the phone using the custom schema (a2p3.net://token?request...).

When clicking on mobile logon from the email.local.a2p3:8080 site, the request is generated properly, agent fetches the token properly. Then the Agent does an invoke using the response URL. It appears that any previous cookies set by email.local are either not allowed or lost because the site reports Logon Error.

Here's the last two requests/responses:

GET http://email.local.a2p3.net:8080/login/response?token=eyJ0eXAiOiJKV0UiLCJhbGciOiJkaXIiLCJlbmMiOiJBMjU2Q0JDK0hTNTEyIiwia2lkIjoiRVZLRTBnTEt1ZmN1clZ3YyJ9..e4tAFFuvq0SJ66RagDVcaw.iNEAL20e8Xtdpc215IXdi6FITkYATF6gLyXocoIWpn2kCvlTpDKilUkZ8SV2o1KlO6jBIGaJhzSOZAjQ3TglGCTVRcC95QbYqxifg3whxHiVHl1kZCt9An73MRjxqfo6QwWYLN0W-e0NOQBJtqpdgm8BB6_mHDvIX9QSmbh7I4ipa0pfHgRCuZX1Gsq6LIGo773lkmhcyovy7RR8SfYstHMwnB3oQmTW2L25pg5Ab8a1TK445fOL3797E-qYzowo8fi76T1-L4LkqQmDZATrzV_4KWxIuAz-4XP7Qnibz7-8OY8OLwUePer1U-yFNnMbKz8UT2sfN1gBog9BFuVHFHnUnXOhz7ASjrU12__xHtuCgO9PcbUYIrgQTOAKl1a9.367yBOfFI_vLbe7fqs6j1IMDb8217Y_O1tUBjF1MoXuZ6UFQzSbxkTgiYlwylsgizyHYH0vX_IzQVT1ZqaPfWw HTTP/1.1
Host: email.local.a2p3.net:8080
Connection: keep-alive
Accept-Encoding: gzip, deflate
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Cookie: connect.sess=s%3Aj%3A%7B%7D.Wt76C0yi3QriWCH4wb0Dk9Ai5ffEzSZwFyqVCyJ%2FPts
Connection: keep-alive
Accept-Language: en-us
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 6_0_2 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A551 Safari/8536.25

HTTP/1.1 302 Moved Temporarily
X-Powered-By: Express
Vary: Accept
Content-Type: text/html
Location: http://email.local.a2p3.net:8080/error?error=UNKNOWN&errorMessage=Session%20information%20lost
Content-Length: 252
Date: Thu, 17 Jan 2013 04:09:50 GMT
Connection: keep-alive

Moved Temporarily. Redirecting to http://email.local.a2p3.net:8080/error?error=UNKNOWN&errorMessage=Session%20information%20lost

GET http://email.local.a2p3.net:8080/error?error=UNKNOWN&errorMessage=Session%20information%20lost HTTP/1.1
Host: email.local.a2p3.net:8080
If-Modified-Since: Tue, 15 Jan 2013 05:41:43 GMT
If-None-Match: "189-1358228503000"
Connection: keep-alive
Accept-Encoding: gzip, deflate
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-us
Cookie: connect.sess=s%3Aj%3A%7B%7D.Wt76C0yi3QriWCH4wb0Dk9Ai5ffEzSZwFyqVCyJ%2FPts
Connection: keep-alive
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 6_0_2 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A551 Safari/8536.25

HTTP/1.1 304 Not Modified
X-Powered-By: Express
Accept-Ranges: bytes
ETag: "189-1358228503000"
Date: Thu, 17 Jan 2013 04:09:50 GMT
Cache-Control: public, max-age=0
Last-Modified: Tue, 15 Jan 2013 05:41:43 GMT
Connection: keep-alive

@dickhardt
Copy link
Owner

What does the server report?

On Jan 16, 2013, at 8:17 PM, GregTurner notifications@github.com wrote:

In short, sessions are lost if invoking the Agent on the phone using the custom schema (a2p3.net://token?request...).

When clicking on mobile logon from the email.local.a2p3:8080 site, the request is generated properly, agent fetches the token properly. Then the Agent does an invoke using the response URL. It appears that any previous cookies set by email.local are either not allowed or lost because the site reports Logon Error.

Here's the last two requests/responses:

GET http://email.local.a2p3.net:8080/login/response?token=eyJ0eXAiOiJKV0UiLCJhbGciOiJkaXIiLCJlbmMiOiJBMjU2Q0JDK0hTNTEyIiwia2lkIjoiRVZLRTBnTEt1ZmN1clZ3YyJ9..e4tAFFuvq0SJ66RagDVcaw.iNEAL20e8Xtdpc215IXdi6FITkYATF6gLyXocoIWpn2kCvlTpDKilUkZ8SV2o1KlO6jBIGaJhzSOZAjQ3TglGCTVRcC95QbYqxifg3whxHiVHl1kZCt9An73MRjxqfo6QwWYLN0W-e0NOQBJtqpdgm8 BB6_mHDvIX9QSmbh7I4ipa0pfHgRCuZX1Gsq6LIGo773lkmhcyovy7RR8SfYstHMwnB3oQmTW2L25pg5Ab8a1TK445fOL3797E-qYzowo8fi76T1-L4LkqQmDZATrzV_4KWxIuAz-4XP7Qnibz7-8OY8OLwUePer1U-yFNnMbKz8UT2sfN1gBog9BFuVHFHnUnXOhz7ASjrU12__xHtuCgO9PcbUYIrgQTOAKl1a9.367yBOfFI_vLbe7fqs6j1IMDb8217Y_O1tUBjF1MoXuZ6UFQzSbxkTgiYlwylsgizyHYH0vX_IzQVT1ZqaPfWw HTTP/1.1
Host: email.local.a2p3.net:8080
Connection: keep-alive
Accept-Encoding: gzip, deflate
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Cookie: connect.sess=s%3Aj%3A%7B%7D.Wt76C0yi3QriWCH4wb0Dk9Ai5ffEzSZwFyqVCyJ%2FPts
Connection: keep-alive
Accept-Language: en-us
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 6_0_2 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A551 Safari/8536.25

HTTP/1.1 302 Moved Temporarily
X-Powered-By: Express
Vary: Accept
Content-Type: text/html
Location: http://email.local.a2p3.net:8080/error?error=UNKNOWN&errorMessage=Session%20information%20lost
Content-Length: 252
Date: Thu, 17 Jan 2013 04:09:50 GMT
Connection: keep-alive

Moved Temporarily. Redirecting to http://email.local.a2p3.net:8080/error?error=UNKNOWN&errorMessage=Session%20information%20lost

GET http://email.local.a2p3.net:8080/error?error=UNKNOWN&errorMessage=Session%20information%20lost HTTP/1.1
Host: email.local.a2p3.net:8080
If-Modified-Since: Tue, 15 Jan 2013 05:41:43 GMT
If-None-Match: "189-1358228503000"
Connection: keep-alive
Accept-Encoding: gzip, deflate
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-us
Cookie: connect.sess=s%3Aj%3A%7B%7D.Wt76C0yi3QriWCH4wb0Dk9Ai5ffEzSZwFyqVCyJ%2FPts
Connection: keep-alive
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 6_0_2 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A551 Safari/8536.25

HTTP/1.1 304 Not Modified
X-Powered-By: Express
Accept-Ranges: bytes
ETag: "189-1358228503000"
Date: Thu, 17 Jan 2013 04:09:50 GMT
Cache-Control: public, max-age=0
Last-Modified: Tue, 15 Jan 2013 05:41:43 GMT
Connection: keep-alive


Reply to this email directly or view it on GitHub.

@GregTurner
Copy link
Contributor Author

      email.local.a2p3.net  GET     /login  302     3       ms      -       -
         as.local.a2p3.net  POST    /token  200     2       ms      -       -
      email.local.a2p3.net  GET     /login/response?token=eyJ0eXAiOiJKV0UiLCJhbGciOiJkaXIiLCJlbmMiOiJBMjU2Q0JDK0hTNT

EyIiwia2lkIjoiRVZLRTBnTEt1ZmN1clZ3YyJ9..e4tAFFuvq0SJ66RagDVcaw.iNEAL20e8Xtdpc215IXdi6FITkYATF6gLyXocoIWpn2kCvlTpDKilUkZ8
SV2o1KlO6jBIGaJhzSOZAjQ3TglGCTVRcC95QbYqxifg3whxHiVHl1kZCt9An73MRjxqfo6QwWYLN0W-e0NOQBJtqpdgm8BB6_mHDvIX9QSmbh7I4ipa0pfH
gRCuZX1Gsq6LIGo773lkmhcyovy7RR8SfYstHMwnB3oQmTW2L25pg5Ab8a1TK445fOL3797E-qYzowo8fi76T1-L4LkqQmDZATrzV_4KWxIuAz-4XP7Qnibz
7-8OY8OLwUePer1U-yFNnMbKz8UT2sfN1gBog9BFuVHFHnUnXOhz7ASjrU12__xHtuCgO9PcbUYIrgQTOAKl1a9.367yBOfFI_vLbe7fqs6j1IMDb8217Y_O
1tUBjF1MoXuZ6UFQzSbxkTgiYlwylsgizyHYH0vX_IzQVT1ZqaPfWw 302 2 ms - -
email.local.a2p3.net GET /error?error=UNKNOWN&errorMessage=Session%20information%20lost 304 2
ms - -

@dickhardt
Copy link
Owner

Let me know if this is still an issue.

@GregTurner
Copy link
Contributor Author

Don't think so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants