在dotnetopenauth中指定请求参数4
在执行OAuth时,我需要让Facebook显示登录Facebook提示,而不是转到应用操作。为了做到这一点,我需要指定display = popup作为请求的一部分。
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.
如何使用DotNetOpenAuth 4使用WebServerClient执行OAuth时如何执行此操作对象?
How can I do this when performing OAuth with DotNetOpenAuth 4 using their WebServerClient object?
在以前的版本中,PrepareRequestUserAuthorization中有一个requestParameters参数,但现在只需要一个IEnumerable列表范围。
It seems in previous versions there was a requestParameters parameter in PrepareRequestUserAuthorization but now it just takes an IEnumerable listing scopes.
谢谢
添加 display = popup
查询参数到您在 AuthorizationServerDescription.AuthorizationEndpoint
上设置的URL。
Add the display=popup
query parameter to the URL you set on AuthorizationServerDescription.AuthorizationEndpoint
.