Agent365 Auth token with external 3rd party agents
@ajmfehr já está trabalhando nisso.
Desde 27/3/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Is your feature request related to a problem?
We are working with one of our customers who is building a third-party (3P) agent hosted on Google Cloud Platform (GCP) outside the Microsoft 365 Agents hosting framework and we want to integrate Agent 365 Observability to send telemetry into the A365 Admin Center. We need guidance on how to obtain the authentication token required by the observability exporter when we don't have access to a TurnContext or the M365 Agents SDK hosting layer
.
The SDK's token_resolver requires a Bearer token for instance from sample code the scope iis https://api.powerplatform.com/.default, but all documented paths obtain this via OBO token exchange through TurnContext.exchange_token() which requires the M365 Agents hosting framework.
These customer agent doesn't run inside that framework, so we have no TurnContext and no incoming Microsoft channel tokens to exchange.
Questions:
Can a 3P external agent use Entra ID client credentials flow (or another method) to independently obtain a valid token for the observability API?
What Entra ID app registration / permissions are needed for this?
Is the SpectraExporterOptions (OTLP sidecar) path an alternative for 3P agents to route telemetry into the Admin Center?
Any guidance or sample on how this can be achieved for externally hosted agents?
Following is the sample I am yet to test but was not sure if the same MSAL generated token method would work, before giving it a shot thought of checking here with the experts. here is that sample code (assumptions here are frontier enrolled, Agent blueprint id registered in Entra):
Priority
High
Describe the solution you'd like
Guidance on how this can be achieved with 3rd party agents.
Describe alternatives you've considered
No response
Available workarounds
No response
Additional context
No response
Code of Conduct
- I agree to follow the Microsoft Open Source Code of Conduct.
- Linguagem predominante
- Python
- Estrelas
- 41
- Forks
- 23
- Merge médio
- 19h 58min
- PRs com merge (30d)
- 2
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de microsoft/Agent365-python
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
microsoft/Agent365-python#249 ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 78/100
microsoft/Agent365-python#271 ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
microsoft/Agent365-python#270 ·
-
[python/agent-framework/sample-agent] Sample dependencies are inconsistent on PyPI — cannot runAberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 38/100
microsoft/Agent365-python#262 ·
-
Bug: NonRecordingSpan crashes with 'NonRecordingSpan object has no attribute context' when observability exporter is enabledTalvez livre de novo @nikhilNava assumiu há 132 dias e não há nenhum pull request aberto. Aberta
microsoft/Agent365-python#257 · 2 comentários · 1 responsável ·
Todas as issues de microsoft/Agent365-python
Issues semelhantes
-
Quantized sample scoring and slicing discard the configured epsilon gapTalvez já em andamento @sylvesterkaczmarek assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
google-deepmind/distrax#364 ·
Mantenedores costumam responder em até 1 dia
-
Update contributing policyAberta
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 66/100
suitenumerique/conversations#798 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
fabriziosalmi/certmate#1207 ·
Mantenedores costumam responder em até 1 dia
-
[work-item] adam-adae-onset-emergence: document the minute-precision datetime coercion (ASTTMF not derivable)Talvez já em andamento @muse-yamaa-bot assumiu hoje. Abertawork-item
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia