Skip to content

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

Merged
merged 3 commits into from
Jun 18, 2025

Conversation

Pawank-MSFT
Copy link
Collaborator

No description provided.

@Pawank-MSFT Pawank-MSFT requested a review from Copilot June 9, 2025 12:07
Copilot

This comment was marked as outdated.

sample working

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

@Harikrishnan-MSFT Harikrishnan-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved!!!

Copy link
Contributor

@Copilot Copilot AI left a 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 {
Copy link
Preview

Copilot AI Jun 18, 2025

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.

Suggested change
class SsoOAuthHelpler {
class SsoOAuthHelper {

Copilot uses AI. Check for mistakes.

@Harikrishnan-MSFT
Copy link
Contributor

@Harikrishnan-MSFT Harikrishnan-MSFT merged commit 80e4157 into main Jun 18, 2025
276 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants