Specify request parameters in dotnetopenauth 4

霸气de小男生 提交于 2019-12-23 02:52:06

问题


I need to get Facebook display a "Log in to Facebook" prompt rather than a "Go to App" action when performing OAuth. In order to do this, I need to specify "display=popup" as part of the request.

How can I do this when performing OAuth with DotNetOpenAuth 4 using their WebServerClient object?

It seems in previous versions there was a requestParameters parameter in PrepareRequestUserAuthorization but now it just takes an IEnumerable listing scopes.

Thanks


回答1:


Add the display=popup query parameter to the URL you set on AuthorizationServerDescription.AuthorizationEndpoint.



来源:https://stackoverflow.com/questions/10797714/specify-request-parameters-in-dotnetopenauth-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!