-
Notifications
You must be signed in to change notification settings - Fork 862
Nodejs changes for Branding Changes #1673
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
Nodejs changes for Branding Changes #1673
Conversation
sample working Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements several updates for branding changes in the Node.js samples by modernizing the OAuth token exchange flow and adapter setup while updating dependencies. Key changes include:
- Refactoring the SSO OAuth helper to use the CloudAdapter and the http-status-codes package.
- Revising index.js to streamline route definitions and upgrade the adapter setup.
- Updating package.json files to include new dependencies and remove duplicate entries.
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
samples/bot-join-team-using-qr-code/nodejs/ssoOauthHelpler.js | Refactored SSO OAuth token exchange flow and error handling. |
samples/bot-join-team-using-qr-code/nodejs/index.js | Migrated to CloudAdapter, updated HTTP routing and error handling. |
samples/bot-join-team-using-qr-code/nodejs/package.json | Added dependencies for http-status-codes and botframework-connector; cleaned duplicate entries. |
samples/bot-join-team-using-qr-code/nodejs/RootBot.js | Introduced new RootBot for delegating messages based on channel. |
samples/bot-ai-meeting-helper/package.json | Added dependencies for Microsoft Graph client and luxon. |
Files not reviewed (1)
- samples/bot-ai-meeting-helper/package-lock.json: Language not supported
Comments suppressed due to low confidence (1)
samples/bot-join-team-using-qr-code/nodejs/index.js:95
- [nitpick] Although the adapter's turnState is being explicitly set with the ConnectorClient and UserTokenClient, consider adding a clarifying comment to explain why this is necessary.
context.turnState.set(adapter.UserTokenClientKey, userTokenClient);
@@ -1,4 +1,5 @@ | |||
const { StatusCodes, ActivityTypes, tokenExchangeOperationName } = require('botbuilder'); | |||
const { ActivityTypes, tokenExchangeOperationName } = require('botbuilder'); | |||
const { StatusCodes } = require('http-status-codes'); | |||
|
|||
class SsoOAuthHelpler { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The class name 'SsoOAuthHelpler' appears to contain a typo. Consider renaming it to 'SsoOAuthHelper' for clarity.
class SsoOAuthHelpler { | |
class SsoOAuthHelper { |
Copilot uses AI. Check for mistakes.
No description provided.