microsoft / microsoft/Agent365-Samples

Agentic mode hardcoding

Open
#156 0 comments 0 reactions 1 assignee View on GitHub

@rahuldevikar761 is already working on this.

Since Jan 21, 2026.

Dominant language
C#
Stars
108
Forks
59
PR merge metrics
No merged PRs in 30d

Description

Documentation says that

When you use agentic authentication, direct messaging in Agents Playground isn't currently supported. You must test through custom activities instead.

However, the code seems have hardcoded to be agentic only. host_agent_server.py has self.auth_handler_name = "AGENTIC" hardcoded.

I needed to change it to -

# Use agentic auth only if enabled, otherwise anonymous
        use_agentic_auth = environ.get("USE_AGENTIC_AUTH", "false").lower() == "true"
        self.auth_handler_name = "AGENTIC" if use_agentic_auth else None

and

handler = [self.auth_handler_name] if self.auth_handler_name else []

to make the code work.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.