通过xmpp关于msn中的刷新令牌 [英] regarding the refresh token in msn via xmpp

查看:82
本文介绍了通过xmpp关于msn中的刷新令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

我正在尝试使用以下网址获取access_token ..

i am trying to get the access_token using the following url..

https: //login.live.com/oauth20_authorize.srf?response_type=token&scope=wl.messenger wl.offline_access wl.signin wl.basic wl.photos wl.share& redirect_uri = https%3A%2F%2Flogin.live.com %2Foauth20_desktop.srf& client_id = 00000000440CA7AC& display = touch

我指定了"response_type"作为代币。现在我想知道如何获取刷新令牌。 

我已阅读文档..

http://msdn.microsoft.com/en-us/library/ hh243649.aspx#authorization

但根据我对此文档的理解......这需要获取autherization代码...然后再次向重定向发送请求url然后读取响应(以json格式),它提供刷新令牌和访问令牌。 

but as per my understanding of  this document .. this requires to fetch the autherization code ... then again send a request to the redirect url and then read the response (that is in json format) which gives the refresh token and access token.. 

有什么方法可以在一个请求中同时获取访问令牌和刷新令牌作为参数?

Is there any way where i can get both the access token and refresh token as parameter in one request ?

感谢和问候,

Deepak

推荐答案

信息re:获取访问令牌和刷新令牌在这里:

The information re: fetching an access token and refresh token is here:

http:// msdn。 microsoft.com/en-us/library/live/hh243649#get_access

我认为你必须在初始请求中使用response_type = code而不是response_type = token。

I think you have to use response_type=code instead of response_type=token in your initial request though.


这篇关于通过xmpp关于msn中的刷新令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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