Hi,
I found a several post about this topic. But I'm not able to find a solution.
So.
I set the ClaimRequest in the request:
IAuthenticationRequest request = openid.CreateRequest( Identifier.Parse(id),Realm.AutoDetect);
// Require some additional data
request.AddExtension(new ClaimsRequest
{
BirthDate = DemandLevel.Require,
Email = DemandLevel.Require,
FullName = DemandLevel.Require
});
return openid.CreateRequest(Request.Form["openid_identifier"]).RedirectingResponse.AsActionResult();
I set the following option in the config file.
<dotNetOpenAuth>
<openid>
<relyingParty>
<security requireSsl="false" />
<behaviors>
<!-- The following OPTIONAL behavior allows RPs to use SREG only, but be compatible
with OPs that use Attribute Exchange (in various formats). -->
<add type="DotNetOpenAuth.OpenId.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth" />
</behaviors>
</relyingParty>
</openid>
<messaging>
<untrustedWebRequest>
<whitelistHosts>
<!-- since this is a sample, and will often be used with localhost -->
<add name="localhost" />
</whitelistHosts>
</untrustedWebRequest>
</messaging>
<!-- Allow DotNetOpenAuth to publish usage statistics to library authors to improve the library. -->
<reporting enabled="true" />
</dotNetOpenAuth>
But I the ClaimRespone is alwasy null...
var claim = response.GetExtension();
Anybody can help me?
l.