I was able to do a working Net::OpenID::Consumer (now known as Relying Party) implementation surprisingly quickly. Never having looked at the stuff before, I think I had it working in about an hour. Nice.

Net::OpenID::Server however, is kicking my, well I'm having trouble and I'm not sure if it's because the doc is a bit thin and I'm missing a step or I'm doing the setup stage wrong. I'm using the same structure as POD synopsis. And in my setup step I've got a form POSTing back to the server with user-supplied identity information to validate.

In my logs I can see the POST is coming back to the server script with everything I *think* it's supposed to have. But the server is bailing on it, skipping its two primaries "setup" and "redirect" and therefore not running the is_identity or the is_trusted methods to use the POST data.

To make a long story short, and it's not too late for that, does anyone have a working example of a Net::OpenID::Server that you would share here? (I've looked around Google and some mailing lists and found nothing more concrete than the POD.)


In reply to Anyone have shareable code built with Net::OpenID::Server? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.