如何将Azure DevOps与Azure Bot服务连接 [英] How to connect Azure DevOps with Azure Bot services

查看:168
本文介绍了如何将Azure DevOps与Azure Bot服务连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我能够针对AD v2(Graph)创建身份验证用户,但Azure DevOps不是Graph API的一部分所以我需要直接对Azure DevOps用户进行身份验证。

I was able to create authenticate users against AD v2 (Graph) but Azure DevOps isn't part of Graph API so I need to authenticate the users against Azure DevOps directly.


在DevOps  new app  registration:

当我尝试设置  授权
回调网址
  https://token.botframework.com/.auth/web/redirect   I
收到错误,说网址已被使用(bug ?),我把它设置为  https://token.botframework.com/.auth/web///redirect  和
它被接受。

On the DevOps new app registration:
When I tried to set the Authorization callback URL to https://token.botframework.com/.auth/web/redirect I get an error saying the url is already used (bug?), I've set it to https://token.botframework.com/.auth/web///redirect and it was accepted.


现在我有:

Now I have:



  • App ID

  • App secret

  • Client Secret

  • 授权URL

  • 访问令牌URL

  • 授权范围


在Azure Bot连接设置中,我选择  Generic
Oauth 2
 并设置以下内容:

On the Azure Bot connection setting I choose Generic Oauth 2 and set the following:



  • 客户端ID:< DevOps app  app
    id
     >(错误?)

  • 客户端密码:< DevOps app's  客户端
    秘密
     >

  • 授权< URL:DevOps app  授权
    网址
     >

  • 令牌网址:< DevOps app's  访问
    令牌网址
     >

  • 刷新URL:< DevOps app's  授权
    网址
     >(错误?)

  • 范围:< DevOps app's  授权
    范围
     >
  • Client Id: < DevOps app's app id > (wrong?)
  • Client secret: < DevOps app's client secret >
  • Authorization < URL: DevOps app's Authorize URL >
  • Token URL: < DevOps app's Access Token URL >
  • Refresh URL: < DevOps app's Authorize URL > (wrong?)
  • Scopes: < DevOps app's Authorized Scopes >


现在,当我点击'测试连接'时,我得到  400
BAD REQUEST
  with:

Now as I hit the 'Test Connection' I get 400 BAD REQUEST with:

Exception of type 'Microsoft.VisualStudio.Services.Web.Profile.Controllers.DelegatedAuthorizationException' was thrown.



任何想法?

Any ideas?

推荐答案

感谢您的反馈。为了最快速地解决您的问题,请将您的问题发布到Stack Overflow: 

Thank you for your feedback here. For quickest solution of your issue, please reach post your question to Stack Overflow: 

非常感谢,

宇通


这篇关于如何将Azure DevOps与Azure Bot服务连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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