]> sipb.mit.edu Git - ikiwiki.git/blob - doc/index/openid/discussion.mdwn
ikiwiki (3.20140916) unstable; urgency=low
[ikiwiki.git] / doc / index / openid / discussion.mdwn
1 # OpenID discussion
2
3 ## No return_to in OpenID server
4
5 Hi, there's no return_to from a designated OpenID server page, specs requires (I think a "should" or "must", can't recall exact wording) that it redirects back to the RP, in order to complete the registration and authentication. Unless I'm missing something, and the doc is incomplete, I'd consider this a bug. I don't expect to be of much use WRT coming up with a patch, but I'm willing to test ;-) .
6
7 > If this is a bug, could you please explain:
8
9 > * What happens when the bug occurs?
10 > * How can one reproduce the bug?
11 >
12 > PS, please file bugs under [[bugs]] in future. --[[Joey]]
13
14 >> Oops, my bad, didn't know that existed at the time I wrote this.
15 >>
16 >> What happened is that the process wouldn't complete, therefore I couldn't login with my OpenID.
17 >>
18 >> reproducibility: every time
19 >>
20 >> Should probably move this page, eh? ;)
21 >> I'd do that, but I dunno know other than using the SCM backend in question....
22
23 Here's some actual output (with my OpenID URL stripped out):
24
25 do=postsignin&oic.time=1238224497-1450566d93097caa707f&openid.assoc_handle=%7BHMAC-SHA1%7D%7B49cdce76%7D%7BBhuXXw%3D%3D%7D&openid.identity=|<==== MY OPENID URL GOES HERE ====>|&openid.mode=id_res&openid.op_endpoint=http%3A%2F%2Fwww.myopenid.com%2Fserver&openid.response_nonce=2009-03-28T07%3A15%3A02ZDUFmG3&openid.return_to=http%3A%2F%2Fsimonraven.kisikew.org%2Fbin%2Fikiwiki.cgi%3Fdo%3Dpostsignin%26oic.time%3D1238224497-1450566d93097caa707f&openid.sig=E51Xh6Gnjku%2B0se57qCyhHbT5QY%3D&openid.signed=assoc_handle%2Cidentity%2Cmode%2Cop_endpoint%2Cresponse_nonce%2Creturn_to%2Csigned
26
27 The `return_to` arg should NOT be `signed`, it should be the originating URL where you initially logged in.
28
29 >> Yes, exactly. That's also my understanding of the spec.
30
31 > I think you're confusing 'openid.return_to' with 'return_to'. The
32 > former is present above, and is, indeed, the originating url, the latter
33 > is part of the *value* of the 'openid.signed' parameter generated by myopenid.com. --[[Joey]] 
34
35 Also, I dunno what the assoc_handle is doing spitting out an arg like `{HMAC-SHA1}{49cdce76}{BhuXXw%3D%3D}` it should be processed further. I have the needed perl packages installed (latest for Lenny). Hrm, would endianness matter?
36
37 > Again, this value is created by the openid server, not by ikiwiki.
38 > I see the same HMAC-SHA1 when using myopenid, and completly different
39 > things for other openid servers. (Ie, when using livejournal as an openid server,
40 > `openid.assoc_handle=1239305290:STLS.QiU6zTZ6w2bM3ttRkdaa:e68f91b751`)
41
42 >> OK, I wasn't too sure about that, seemed bogus or somehow wrong or in error, like it wasn't actually being `completed`.
43
44 > I'm fairly sure that is all a red herring.
45
46 > So, when I was talking about reproducing the bug, I was thinking perhaps you could tell me what openid server you're using,
47 > etc, so I can actually see the bug with my own eyes.
48
49 >> myopenid.com, with the CNAME option turned on.
50
51 > The sanitised url parameters you've provided are not generated by ikiwiki at all.
52 > They don't even seem to be generated by the underlying [[!cpan Net::OpenID]] library.
53
54 >> That was a server log entry with date/host/time stripped, and my URL also stripped. Everything else is as was in the log. I installed the Debian packages in Lenny, both server and consumer OpenID Perl packages.
55
56 > I'm pretty sure that what you're showing me is the url myopenid redirects
57 > the browser to after successfully signing in. At that point, ikiwiki
58 > should complete the signin. What fails at this point? How can I reproduce this failure? --[[Joey]] 
59
60 I'll try it again myself. I had tried it oh probably 6 times before I finally gave up on it. Maybe I'm getting rusty and I'm just PEBKACing all over the place. :P
61
62 Also, to address the point about this discussion being in the wrong area (not under bugs), should I move it, or will you? I don't mind doing it, if you can't.