Add NodeJS Authorization samples (auto and obo)#206
Merged
Conversation
MattB-msft
approved these changes
Jul 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds a new Node.js implementation of the Auto Sign-In sample for the Microsoft 365 Agents SDK, alongside updates to the existing .NET implementation. The changes include new functionality for handling OAuth-based user authorization, integration with Microsoft Graph and GitHub APIs, and updates to documentation and configuration files.
Node.js Implementation of Auto Sign-In Sample:
New Node.js Sample Files:
index.tsfor the main application logic,githubApiClient.tsfor GitHub API integration, anduserGraphClient.tsfor Microsoft Graph API integration. These files demonstrate OAuth flows, user profile retrieval, and pull request fetching. [1] [2] [3]pullRequestCard.json) for rendering pull request details in chat messages.Configuration and Dependencies:
env.TEMPLATEfor environment variables andpackage.jsonto define dependencies, build scripts, and runtime scripts for the Node.js sample. [1] [2]Updates to .NET Sample:
README.mdfor the .NET sample to clarify prerequisites and provide additional context for local development using dev tunnels. [1] [2]Documentation for Node.js Sample:
README.mdfor the Node.js implementation, covering prerequisites, Azure Bot Service configuration, and instructions for running and testing the sample.