-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
authentication fails for newly created bots #1983
Comments
@DanielLevy0705 thanks for reporting this: Could you please provide a step-by-step of the repro, including the link to the ms-teams web app you are using? |
Thanks for responding :) regarding repro steps:
please note that I've sent also parameters that are coming from |
Update: it's happening also on bots that were created and worked before. |
Hi @DanielLevy0705, I'm investigating. |
Hi guys, is there any progress with this? we're having many clients complaining about this issue. |
update: tested today on a newly created bot and it looks like the issue is resolved! |
@DanielLevy0705 Did you have to do something else to fix the issue? I am facing the same issue in my bots. |
There's some update ou tips regards this? I've similar issue on my server execution with JS SDK, while run normally executing on my machine with exactly the same configuration. EDIT: I open here, even it's for Python SDK, because it's exactly same error message and some kind related with authentication, so it's good to know how the problem was fixed. |
I'm facing the same issue on my part as well ? is there any update regarding it? |
The problem we face was related to auth env not be properly passed to BotBuilder instance. |
@flpms do you have a solution for our issue? is it something that we need to be doing on our part ?
|
Yes, the check the state of your .env when start botbuilder |
Version
4.11.0
Describe the bug
Hi guys, I'm creating a new bot using the Developer portal on ms-teams web app. (which by the way has a bug on Desktop client).
I'm getting the bot id, and the client secret (also known as app password) as I've done many times before.
I didn't make any code changes and my bot worked fine with other credentials just a couple of weeks ago, but in the last few days I'm getting
[Errno Unauthorized. Invalid AppId passed on token: ] <bot-id>
.when sending a post request using postman to:
https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token
with the same credentials it works fine I'm getting status code 200 and a token.
To Reproduce
in my code I'm creating a
SimpleCredentialProvider
with the bot-id and app password and anActivity
frombotbuilder.schema
and the Authorization header from a flaskRequest
and sending it like this:
Expected behavior
expecting to be authenticated and get the token as usual
The text was updated successfully, but these errors were encountered: