Skip to content

Add Agentic auth handler#690

Merged
tracyboehrer merged 1 commit intomainfrom
southworks/add/agentic-auth-handler
Oct 17, 2025
Merged

Add Agentic auth handler#690
tracyboehrer merged 1 commit intomainfrom
southworks/add/agentic-auth-handler

Conversation

@sw-joelmut
Copy link
Copy Markdown
Collaborator

Fixes #689

Description

This PR adds the Agentic auth handler functionality, and adds support for loading the type 'agentic' from the .env, alongside a few validations of the provided handler options.

Testing

Unable to test this functionality as it is Microsoft's first-party app, but we made sure the sample validated the options and started successfully.

Copy link
Copy Markdown
Contributor

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 adds support for Agentic authentication by implementing a new Agentic authorization handler alongside the existing Azure Bot authorization handler. The changes enable loading the 'agentic' type from environment variables and include validation of handler options.

Key changes:

  • Implementation of AgenticAuthorization handler with token retrieval functionality
  • Addition of environment variable support for authorization handler type configuration
  • Enhanced error handling with proper message prefixing

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/agents-hosting/src/app/auth/handlers/agenticAuthorization.ts Complete implementation of the Agentic authorization handler with token management and validation
packages/agents-hosting/src/app/auth/authorizationManager.ts Added support for loading authorization handler type from environment variables with validation
packages/agents-hosting/src/app/auth/handlers/azureBotAuthorization.ts Enhanced error handling by adding message prefixing for consistency

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/agents-hosting/src/app/auth/authorizationManager.ts
@tracyboehrer tracyboehrer merged commit 3de1f48 into main Oct 17, 2025
7 checks passed
@tracyboehrer tracyboehrer deleted the southworks/add/agentic-auth-handler branch October 17, 2025 16:42
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.

Implement Agentic OAuth handler

3 participants