开发者

How to include AX extension in OpenID auth request using DotNetOpenAuth

开发者 https://www.devze.com 2023-01-08 07:56 出处:网络
How to make a开发者_如何学JAVAttribute exchange request in dotnetopenauth.If you are just trying to get standard attributes, I recommend you read about the AXFetchAsSregTransform which hides the compl

How to make a开发者_如何学JAVAttribute exchange request in dotnetopenauth.


If you are just trying to get standard attributes, I recommend you read about the AXFetchAsSregTransform which hides the complexity of AX and SREG attribute gathering from your site.

If you are doing something custom and know what AX attributes you need to request, here is sample code:

var rp = new OpenIdRelyingParty();
var request = rp.CreateRequest("=some*identifier");
var ax = new FetchRequest();
ax.Attributes.AddRequired(WellKnownAttributes.Contact.Email);
request.AddExtension(ax);
request.RedirectToProvider();
0

精彩评论

暂无评论...
验证码 换一张
取 消