使用自己的通用oauth 2连接字符串在bot sdk4中进行身份验证时出现错误请求 [英] Bad Request while authenication in bot sdk4 using own generic oauth 2 connection string
问题描述
我们使用了自己的通用oauth 2身份验证来验证用户. 单击后,将其重定向到登录页面(bot弹出窗口),但返回bot时始终给出错误请求.
We have used our own generic oauth 2 authentication for verifying user. After clicking sign in its redecting to login page(bot popup) but while returning to bot its always giving Bad Request.
从机器人到应用程序的发送请求(发布):- client_id = 12352& response_type = code& redirect_uri = https:///token.botframework.com/.auth/web/redirect&scope=&state=ccd1dcf683044447a1fed78ed6828ba1
Sending request from bot to application(post):- client_id=12352&response_type=code&redirect_uri=https://token.botframework.com/.auth/web/redirect&scope=&state=ccd1dcf683044447a1fed78ed6828ba1
将请求从应用程序返回到bot(get):- https://token.botframework.com/.auth/信息网/redirectcode = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYW5qaTU0MyIsIm5iZiI6MTU0Mzg5OTEzNiwiZXhwIjoyNTM0MDIyODEwMDAsImlzcyI6IkNTUEwiLCJhdWQiOiJFdmVyeW9uZSJ9.mLEbu06qlBsLY6hODY-YtmPNU2EaAfdFF0PPlHMKgb8 在这里输入图像的描述一>& state = ccd1dcf683044447a1fed78ed6828ba1
Returning request from application to bot(get):- https://token.botframework.com/.auth/web/redirectcode=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYW5qaTU0MyIsIm5iZiI6MTU0Mzg5OTEzNiwiZXhwIjoyNTM0MDIyODEwMDAsImlzcyI6IkNTUEwiLCJhdWQiOiJFdmVyeW9uZSJ9.mLEbu06qlBsLY6hODY-YtmPNU2EaAfdFF0PPlHMKgb8enter image description here&state=ccd1dcf683044447a1fed78ed6828ba1
推荐答案
您为令牌调用的授权/令牌/刷新URL出了问题.
There's something wrong with the authorization/Token/Refresh URLs you're calling for your token.
我使用imgur设置了通用OAuth 2进行身份验证,它可以按预期工作.
I set up a generic OAuth 2 using imgur for the authentication and it works as expected.
这篇关于使用自己的通用oauth 2连接字符串在bot sdk4中进行身份验证时出现错误请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!