开发者

DotNetOpenAuth and Google OpenId Params

开发者 https://www.devze.com 2023-02-17 09:37 出处:网络
I am still reading on using dotnetopenauth and google openid. In the google docs they mention some parameters that need to be passed like:

I am still reading on using dotnetopenauth and google openid. In the google docs they mention some parameters that need to be passed like:

"ope开发者_StackOverflow中文版nid.ns", "openid.claimed_id", "openid.identity", "openid.ax.type.email" etc ...

Does DotNetOpenAuth send all those params on its own seamlessly?

Thanks


DotNetOpenAuth sets all the OpenID standard parameters automatically, including openid.return_to. If you want to customize openid.realm or openid.return_to, you can pass values for them as parameters to OpenIdRelyingParty.CreateRequest. Other parameters you can customize or add by setting properties or calling methods on the IAuthenticationRequest that is returned by CreateRequest before you call RedirectToProvider.

In particular, you can specify the openid.ax.type.email parameter by adding a FetchRequest extension to the outgoing request with email included as a required attribute. Then in the response check for the FetchResponse extension.

0

精彩评论

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

关注公众号