Skip to content

Add NodeJS Authorization samples (auto and obo)#206

Merged
rido-min merged 7 commits intomainfrom
feat/node-auth
Jul 10, 2025
Merged

Add NodeJS Authorization samples (auto and obo)#206
rido-min merged 7 commits intomainfrom
feat/node-auth

Conversation

@rido-min
Copy link
Copy Markdown
Member

@rido-min rido-min commented Jul 9, 2025

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:

    • Added a complete implementation of the Auto Sign-In sample in Node.js, including index.ts for the main application logic, githubApiClient.ts for GitHub API integration, and userGraphClient.ts for Microsoft Graph API integration. These files demonstrate OAuth flows, user profile retrieval, and pull request fetching. [1] [2] [3]
    • Introduced adaptive card templates (pullRequestCard.json) for rendering pull request details in chat messages.
  • Configuration and Dependencies:

    • Added env.TEMPLATE for environment variables and package.json to define dependencies, build scripts, and runtime scripts for the Node.js sample. [1] [2]

Updates to .NET Sample:

  • Documentation Updates:
    • Updated the README.md for the .NET sample to clarify prerequisites and provide additional context for local development using dev tunnels. [1] [2]

Documentation for Node.js Sample:

  • New README:
    • Created a detailed README.md for the Node.js implementation, covering prerequisites, Azure Bot Service configuration, and instructions for running and testing the sample.

@rido-min rido-min requested a review from MattB-msft July 9, 2025 22:45
@rido-min rido-min enabled auto-merge (squash) July 10, 2025 15:47
@rido-min rido-min merged commit d931f18 into main Jul 10, 2025
2 checks passed
@rido-min rido-min deleted the feat/node-auth branch July 10, 2025 15:48
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.

2 participants