Closed thejasondt closed 6 years ago
For reference, this was cross-posted from a Stack Overflow question for better tracking.
To answer your question from your Stack overflow comment. The app I was testing with is also in sandbox mode, so I don't think that is the issue. I assume the answer is yes, but I might as well ask if you are trying to sign into your app with the same account you created the app with?
This line:
Though I have replaced "var builder = require('../../core/');" with "var builder = require('botbuilder');"
Is correctly changed and should not be an issue at all.
Can you try on another channel like the emulator? Keep in mind the "test in webchat" tab in Azure will not render the sign in card so it would have to be another channel. I suspect this will also not work because you are getting "bad request" in the test connection. Let me take a look at the video you linked from channel 9 and see if there are any discrepancies in the instructions. Chances are this is just a setting that is off, so we just need to hunt it down.
I have also tried using embedded webchat - https://github.com/Microsoft/BotFramework-WebChat
Edit - I have now also tried it with Facebook Messenger with the same outcome. Edit - and yes I am trying to sign into the app with the same account that created it.
Even without testing in a channel, it should be able to work via the Test Connection button, so I don't think it'd be a channel issue.
Could it be an issue with
var inMemoryStorage = new builder.MemoryBotStorage();
Or something regarding the changeover in March?
In memory storage is most likely not affecting this as I was using it for my testing as well.
Hmm ok - still struggling
When I try Twitter "Test Connection" it does not even reach Twitter - could it be linked and highlight the issue?
My assumption is that they would be related. Let me confirm that I can get Twitter working first as I have not tried with twitter yet.
Are you just getting bad request
with twitter?
Yes - I do not even reach Twitter - but when I do Instagram, I reach them and then a bad request on the redirect
@thejasondt can you send me an email with your IG account name so I can try adding you to my sandbox app to see if my app works for you?
Sent
Added
Let me know how that works out, and check out my settings and see if they align to yours.
Ok, accepted invite - awaiting for it to appear in "manage clients" then will test
I do not think the issue with twitter is on your end so hang tight on that one. I need to speak with someone further about twitter.
Ok - regarding IG, I have accepted the invite but yet to see your app in "manage clients" is there action required by you to allow access to it?
I'm going to be out for a while, but let me know your results.
I cannot reach your client, so will have to wait for your return
Are you getting the same results as you were with your application?
I cannot access your app - if I am on IG and go to manage clients, your app does not appear, so I cannot test EDIT - so there may be actions your end to allow me to access the app?
@thejasondt check your email i gave you the inputs to try my app
@jasonsowers it works - does this mean it is an issue then with my IG setup? I also tested FB and that worked but TW does not
Solved - And it was down to a simple issue. Copy and pasting the secret from IG added an additional blank space at the end of the secret, though the client id did not. Apologies. The issue still occurs with Twitter however
Great!, I am going to continue looking into to twitter
@thejasondt we will have to reach out to another team to look into the issue with Twitter. I will let you know when I have more information on this.
Interesting that despite the blank space I could Authenticate the app but the issue seemed to be with the redirect
@thejasondt I would guess the reason you were able to do it with the blank space was most likely because the space was removed or ignored somewhere along the line.
Are you still seeing any issues, or are we good to close this issue? I am going to make a new issue for Twitter. We are tracking it internally already, but I want a GitHub issue so people know we are already aware of it.
The Microsoft Bot Framework team prefers that "How To" questions be submitted on Stack Overflow. The official Bot Framework GitHub repository is the preferred platform for submitting bug fixes and feature requests.
Bot Info
Issue Description
I am trying to set up a new OAuth connection setting for Instagram on Azure as described on this tutorial (https://channel9.msdn.com/Shows/AI-Show/Conversational-AI-and-Authentication) at time 2:30 to OAuth with a Card in Skype
The issue seems to be with the redirect url when coming back to https://token.botframework.com/.auth/web/redirect
I am currently trying to use OAuthCard in my Skype Bot using
https://github.com/Microsoft/BotBuilder/blob/master/Node/examples/basics-oauth/app.js
Though I have replaced "var builder = require('../../core/');" with "var builder = require('botbuilder');"
I am using this OAuthCard in Skype - I click it and it redirects, asks for approval to my account/sign in - I give it and it then redirects and give a blank white screen with "Bad request"
The redirect url returns: https://token.botframework.com/.auth/web/redirect?code=xyz&state=abc
N.B. If I go to my Instagram account I can see that I have given my app access, so it is not an issue there.
N.N.B I have tried to "Test Connection" using the Twitter OAuth connection setting and that also returns bad request but before reaching Twitter to Authenticate.
Code Example
Reproduction Steps
Expected Behavior
I am expecting it to return to the Skype chat and continue the dialog
Actual Results
I get a blank white page with "bad request" and the url is https://token.botframework.com/.auth/web/redirect?code=xyz&state=abc