Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>sreg was written as the Simplest Thing that could Possibly Work, and has a very limited set of fields available. But since that includes <code>nickname</code>, <code>email</code>, and <code>fullname</code>, that's often all you need.</p> <p>Attribute Exchange is much more extensible and featureful, although I suspect in practice features like the <code>update_url</code> and store request have not been widely implemented.</p> <p>As for knowing which to request: In theory, which extensions a provider supports is documented in the XRDS document available during the discovery phase, as noted in the <a href="http://openid.net/specs/openid-authentication-2_0.html#extensions" rel="noreferrer">Extensions</a> section of the spec. If you're using <a href="http://openidenabled.com/python-openid/" rel="noreferrer">python-openid</a> (or perhaps one of the other libraries at <em>OpenID Enabled</em>), you could query for that via something like</p> <pre><code>auth_req = consumer.begin('http://example.com/joe') from openid.extensions import sreg if sreg.supportsSreg(auth_req.endpoint): sreg_request = sreg.SRegRequest(required=['nickname','email']) auth_req.addExtension(sreg_request) else: # maybe AX, maybe something else... </code></pre> <p>Unfortunately, OpenID identifier delegation makes that pretty unreliable. The user may be using the HTML-based discovery method, which doesn't advertise extensions at all, may have an XRDS that doesn't include the same extension information as the provider does, or an XRDS that was once accurate but is now out of date.</p> <p>In addition, even if you do get an XRDS that advertises the AX extension, as far as I know it doesn't tell you which attributes the provider supports (i.e. which AX schema).</p> <p>The most practical approach is probably to request lots of stuff, and if you get some stuff back, you can use it.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload