Question

I couldn't find anything in documentations about how to add the policy URL to the request when using the dotnetopenid programmatically?

Was it helpful?

Solution

It sounds like the policy URL you're talking about is the privacy policy URL that you can send along with the Simple Registration request. The property you're looking for is ClaimsRequest.PolicyUrl. Here's a snippet that would request a nickname and include your privacy policy:

IAuthenticationRequest req = rp.CreateRequest(/*...*/);
req.AddExtension(new ClaimsRequest {
    Nickname = DemandLevel.Request,
    PolicyUrl = new Uri("http://yourprivacypolicy"),
});
req.RedirectToProvider();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top