在dotnetopenauth中指定请求参数4 [英] Specify request parameters in dotnetopenauth 4

查看:188
本文介绍了在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.

这篇关于在dotnetopenauth中指定请求参数4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆