I'm curious how other libraries do (or plan to) handle multiple endpoints in a single XRDS document. I see a few considerations, in order:<br><ol><li>Enumerate the services in the XRDS-defined priority order</li><li>Skip the services that do not expose OpenID endpoints.</li>
<li>Skip the OpenID endpoints with Providers that do not quality (whitelist/blacklist or advertised extension support</li><li>Take the first endpoint that is left after these filters.</li></ol>But what about the rest of the endpoints listed? Here are some possibilities:<br>
<ol><li>Just use the first endpoint and trust it works.<br></li><li>Try each one successively. That is, the RP should attempt to establish an association with each one until it succeeds with one, and then redirect the user to that one for authentication. Redirecting the user to an unavailable Provider will result in a dead end failure page and the RP will lose the opportunity at this point to try the next endpoint.</li>
<li>A variant on the last, except that in addition to skipping OPs that do not respond to association requests, allow the user to "fail" or cancel the authentication on the first provider and proceed to the second provider listed for another authentication attempt.<br>
</li><li>Offer the user a list of his/her providers to choose from for authentication.</li></ol>Have thoughts been written already on which of these are best and/or common in existing libraries?<br><br>