1
votes

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.

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

Returning request from application to bot(get):- https://token.botframework.com/.auth/web/redirectcode=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYW5qaTU0MyIsIm5iZiI6MTU0Mzg5OTEzNiwiZXhwIjoyNTM0MDIyODEwMDAsImlzcyI6IkNTUEwiLCJhdWQiOiJFdmVyeW9uZSJ9.mLEbu06qlBsLY6hODY-YtmPNU2EaAfdFF0PPlHMKgb8enter image description here&state=ccd1dcf683044447a1fed78ed6828ba1

enter image description here

enter image description here

1
I have the same issue. - thomasmartinsen
Did you find the root cause ? I have an IdentityServer for authorization, using AAD as authentication, and I get the same. No way to get some logs from bot framework endpoint... - Loul G.
Actually my problem came from the fact that I was using a self-signed certificate for my authorization service. - Loul G.

1 Answers

0
votes

There's something wrong with the authorization/Token/Refresh URLs you're calling for your token.

I set up a generic OAuth 2 using imgur for the authentication and it works as expected.

enter image description here