OAuth授权代码授予 [英] OAuth Authorization Code Grant

查看:62
本文介绍了OAuth授权代码授予的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户使用网络浏览器授予访问权限时,获取授权码的最佳方法是什么。

What is the best way to obtain the authorization code when a user is using a web browser to grant access.

现在我们不得不将其复制出来URL,但这不是非常用户友好。 Live Connect团队可以在此页面上显示代码作为字符串而不是重定向上的空白页吗?

Right now we are having to copy it out of the URL but this is not very user friendly. Can the Live connect team display the code as a string on this page instead of a blank page on redirect?

https://login.live.com/oauth20_desktop.srf 

https://login.live.com/oauth20_desktop.srf 

推荐答案

我建议使用
授权代码授权流程
。用户必须通过Web浏览器提供同意,但是,您的应用可以使用重定向来获取访问令牌。您使用哪种编程语言进行开发?如果您需要更多详细信息或示例,请与我们联系。

I would suggest a programmatic solution using Authorization Code Grant Flow. The user must provide consent via the web browser, however, your app can use redirects to get the access token. Which programming language are you using for development? Please let me know if you need more details or an example.

祝你好运,

Eric

Best regards,
Eric


这篇关于OAuth授权代码授予的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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