OpenID provider with SREG and AX.

47 views
Skip to first unread message

Jacob

unread,
Jan 26, 2010, 9:36:55 PM1/26/10
to DotNetOpenAuth
Hi again!

I am now moving on to building upon the MVC OP sample to have support
for SREG and then AX. I'm not entirely clear on the process of doing
this however. I believe that I'm supposed to include this
functionality into the OpenIDController, probably going something like
if (authReq.GetExtension<ClaimsRequest>() != null)
{
*do something*
}

I'm just not entirely sure what that something would be. Presumably, I
would then display a form for the user to supply any data requested,
they'd press submit, and that would go back to the RP with the
response. But roughly how would I go about this? A sample would be
most excellent.

Andrew Arnott

unread,
Jan 26, 2010, 9:51:33 PM1/26/10
to dotnetopenid
Hi Jacob,

You can just support SREG and forget about having to do anything extra for AX by simply applying the AXFetchAsSregTransform to your OP.

So yes, process ClaimsRequest as you have proposed.  You can see a sample of how to process ClaimsRequest by looking at the OpenIdProviderWebForms sample.  These URLs will get you started:

Very little value is added to the user by just prompting the user for the data that the RP wants when the OP wants it.  The RP might as well ask for itself in that case.  The value comes from asking for and storing those values, so that the next time an RP asks, the OP doesn't have to collect that information again, but rather just asks the user "do you want me to send x, y, and z to the RP you're logging into?"

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre

David Christiansen

unread,
Jan 27, 2010, 4:17:55 AM1/27/10
to dotnetopenid

Further to Andrew’s email, if you have problems viewing the wiki (due to it being on port 8000) you can check out this article on SREG/AX at http://www.dotnetopenauth.net/developers/code-snippets/the-axfetchassregtransform-behavior/

 

---

Kind Regards,

David Christiansen | Chief Software Architect @ www.netidme.com

Reply all
Reply to author
Forward
0 new messages