1

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

Anji V
  • 125
  • 2
  • 12

1 Answers1

0

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

JJ_Wailes
  • 2,207
  • 1
  • 9
  • 17
  • i am able to connect with third party providers(google,fb,github..) but i want to check the credentials with my database. for this i have used identity server4 but coludn't connect same posted [here](https://stackoverflow.com/questions/53829248/ms-bot-authentication-with-identity-server4-generic-oauth2) – Anji V Jan 18 '19 at 14:32