无法生成授权码 [英] Unable to generate Authorization Code

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

问题描述

我遇到授权码授予流程的问题。我正在尝试在注册应用程序后生成授权代码。但它在网址中给出了以下错误,

I am having problem with Authorization Code Grant Flow. I am trying to generate a authorization code after registering an application. But it is giving me following error in the url,

https://login.live.com/err.srf?lc=1033#error=invalid_request&error_description=The+vvided+用于+ +输入+参数+ 'REDIRECT_URI' 值+是+未+有效+的预期+ + +值是+的"https://login.live.com/oauth20_desktop.srf'+or+a+URL+which +匹配+ +重定向+ URI +注册+ +此+客户端+应用程序。& state = ClientStateGoesHere

https://login.live.com/err.srf?lc=1033#error=invalid_request&error_description=The+provided+value+for+the+input+parameter+'redirect_uri'+is+not+valid.+The+expected+value+is+'https://login.live.com/oauth20_desktop.srf'+or+a+URL+which+matches+the+redirect+URI+registered+for+this+client+application.&state=ClientStateGoesHere

我使用的是我在应用程序中使用的正确redirect_url。

I am using correct redirect_url which i have used in the application.

推荐答案

请确保注册重定向网址使用https。我记得如果您使用http,可能会返回此错误。如果这不能解决问题,请与支持人员联系
  with更多细节,例如带有完整repro步骤的HTTP跟踪,我们可以进行调查。 

Please also make sure the registered redirect URL uses https. As I recall this error might be returned if you are using http. If that doesn't resolve the issue please contact support with more details e.g. HTTP trace with full repro steps, and we can investigate. 

我希望这会有所帮助,

Eric


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

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