Howdy, all. I'm new to this community, although an old hand at programming and a fairly longtime LJ user. I *think* I've hit a new bug -- I toss it out here for advice on what to do with it. Keep in mind that I'm pretty new to OpenID, and trying to puzzle out a lot of confusing symptoms
(
Read more... )
Comments 14
Reply
Reply
Reply
Reply
LJ isn't actually declaring 2.0 support for any of its identifiers, so really your consumer should be doing 1.1-shaped requests and the op_endpoint argument shouldn't be required. If this isn't working, then this indicates that either OpenID4Java's RP or Net::OpenID::Server's OP (which LJ is running) is failing to support 1.1 correctly. If OpenID4Java is doing a 2.0 request, it'd be interesting if you could find out what's triggering it to do that. If you're doing a 1.1 request and getting back a response with op_endpoint then that's probably a bug at the OP end which I can look at fixing, as a maintainer of that library.
If LJ engineers want to make 2.0 work fully, they'll need to add openid2.provider to the HTML and the equivalent to the Yadis document, and probably fix the MIME type as you say. I'm happy to help if they have any questions about this.
Reply
That appears to be what's happening, yes. I can't say I'm 100% certain (like I said, I'm relatively new to both the OpenID protocol and the library), but at the app level it certainly thinks it's doing 1.1 (or, more precisely, pre-2.0), and it's definitely getting an empty op_endpoint back...
Reply
I just checked in a fix which should prevent op_endpoint from being included in 1.1 responses. Not really sure how you'd test it, though, since LJ is of course still running the bugged version, and I'm guessing you've got better things to do than write a basic Perl OP to test this against.
OpenID4Java is also a bit wrong here too. It shouldn't be processing openid.op_endpoint in the 1.1 case. While I guess you could consider its presence to be an error if you want to be overly pedantic, I think it'd be better to just ignore this extra argument in the 1.1 case. Maybe you can relay that back to the OpenID4Java developers. :)
Reply
Thanks for the fix -- when it makes it to release (which I assume will happen eventually), I'll test it out and undo my hack...
Reply
Google Error
Bad Request
Your client has issued a malformed or illegal request.
?
Reply
Leave a comment