-
Notifications
You must be signed in to change notification settings - Fork 279
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
CloudAdapter always builds Connector with MicrosoftAppCredentials (never CertificateAppCredentials) -- certificate auth flow broken #4449
Comments
Thanks @jineshjin. I'm investigating. |
Hi @ramfattah, any updates here? Just wanted to know whether this is the issue identified and will need fix? |
Hi @jineshjin, thanks for your patience. Asking few clarifying questions:
|
Hi @ramfattah, thanks for looking into it. I would answer 3rd first,
This is the first time I am trying to connect with CloudAdapter however I have used cert auth previously with BotFrameworkAdapter but CloudAdpter is not even accepting the cert properties as object where it is only expecting these parameters. https://github.com/microsoft/botbuilder-js/blob/main/libraries/botbuilder-core/src/configurationServiceClientCredentialFactory.ts#L19.
|
Thanks @jineshjin, I'm able to reproduce this issue. After setting up the authentication with certificate credentials using typescript sample 02.echo-bot: const botFrameworkAuthentication = new ConfigurationBotFrameworkAuthentication({
MicrosoftAppId: process.env.MicrosoftAppId,
CertificateThumbprint: '12B12B12B12B12B12B12B12B12B',
CertificatePrivateKey: fs.readFileSync('C:/Users/***/Documents/Azure/Keys/dev/certificate.pem', 'utf8')
} as ConfigurationBotFrameworkAuthenticationOptions);
// Create adapter.
// See https://aka.ms/about-bot-adapter to learn more about how bots work.
const adapter = new CloudAdapter(botFrameworkAuthentication); I received the following error when tested the bot in Azure Bot WebChat:
|
Hey @ceciliaavila, I was able to reproduce this issue, assigning this to you for now. Please let me know if you have any questions. |
Thanks @ramfattah. |
Hi @jineshjin, we are now testing the changes to support CertificateAppCredentials. We estimate to have a PR ready by the end of the week. |
@ceciliaavila perfect, many thanks! |
…edentials (never CertificateAppCredentials) -- certificate auth flow broken (#4457) * Add support for certificates * Fix typos
@tracyboehrer issue is closed but when can we expect a release? Thanks! |
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Versions
What package version of the SDK are you using.
4.19.2
What nodejs version are you using
>18.9.x
What os are you using:
Mac OS 13.2.1
Describe the bug
Similar to this issue: #3246 Cloudadpter is not accepting
CertificateAppCredentials
. There is no way to provide those parameters to constructor.To Reproduce
Steps to reproduce the behavior:
Initialize CloudAdapter and try to pass certThumbprint and certPrivatekey.
Expected behavior
It should support CertificateAppCredentials as part of CloudAdpater similar it was with BotFrameworkAdapter
Screenshots
Additional context
see implementation: https://github.com/microsoft/botbuilder-js/blob/main/libraries/botbuilder-core/src/configurationServiceClientCredentialFactory.ts#L51
The text was updated successfully, but these errors were encountered: