Skip to content

Auth flow and ENV pattern for all samples#21

Merged
axelsrz merged 2 commits intomainfrom
users/axsuarez/anonymous-flow
Apr 3, 2025
Merged

Auth flow and ENV pattern for all samples#21
axelsrz merged 2 commits intomainfrom
users/axsuarez/anonymous-flow

Conversation

@axelsrz
Copy link
Member

@axelsrz axelsrz commented Apr 3, 2025

This pull request introduces several changes to improve the handling of anonymous authentication and environment configuration in the Microsoft Agents Builder and related test samples. The most important changes include adding support for an anonymous token provider, updating the configuration to use environment variables, and refining the anonymous authentication strategy.

Improvements to Anonymous Authentication:

Environment Configuration Updates:

  • test_samples/agent_to_agent/agent_1/app.py, test_samples/agent_to_agent/agent_2/app.py, test_samples/echo_agent/app.py: Added load_dotenv() to load environment variables from a .env file. [1] [2] [3]
  • test_samples/agent_to_agent/agent_1/config.py, test_samples/agent_to_agent/agent_2/config.py, test_samples/echo_agent/config.py: Updated the configuration classes to use environment variables for TENANT_ID, CLIENT_ID, CLIENT_SECRET, and other settings. [1] [2] [3]

@axelsrz axelsrz merged commit 017b14f into main Apr 3, 2025
4 of 5 checks passed
@axelsrz axelsrz deleted the users/axsuarez/anonymous-flow branch April 3, 2025 02:52
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.

1 participant

Comments