<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/building-secure-ai-agents-with-microsoft-agent-framework-part-1-rawd4wnwk" -->

---
title: Building Secure AI Agents with Microsoft Agent Framework...
description: A step-by-step guide to building an AI expense approval agent using the Microsoft Agent Framework (MAF) and Auth0 in a C# Blazor Web App on .NET 10. Part 1 of...
canonical: https://daily.dev/posts/building-secure-ai-agents-with-microsoft-agent-framework-part-1-rawd4wnwk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Building Secure AI Agents with Microsoft Agent Framework Part 1 | daily.dev
og:description: A step-by-step guide to building an AI expense approval agent using the Microsoft Agent Framework (MAF) and Auth0 in a C# Blazor Web App on .NET 10. Part 1 of...
og:url: https://daily.dev/posts/building-secure-ai-agents-with-microsoft-agent-framework-part-1-rawd4wnwk
og:image: https://api.daily.dev/og/posts/rAwd4WnWK.png
og:image:alt: Building Secure AI Agents with Microsoft Agent Framework Part 1
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Building Secure AI Agents with Microsoft Agent Framework Part 1

**[Auth0](https://daily.dev/sources/auth0)** · 12 min read · 2 upvotes · 0 comments

## Summary

A step-by-step guide to building an AI expense approval agent using the Microsoft Agent Framework (MAF) and Auth0 in a C# Blazor Web App on .NET 10. Part 1 of a four-part series covers scaffolding the project with the Auth0 .NET template, configuring GitHub Models (gpt-4o-mini) as the inference backend, implementing a tool-calling agent with session persistence via distributed cache, and wiring up a Blazor chat UI protected by Auth0 authentication. The agent can retrieve hardcoded expense reports and maintain multi-turn conversation state across renders. Future parts will add vector database integration, fine-grained authorization, Gmail tooling via Token Vault, and CIBA-based push approval flows.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://auth0.com/blog/building-secure-ai-agents-with-microsoft-agent-framework-and-auth0-part-1-user-authentication>

## Similar posts on daily.dev

- [Build a Secure RAG System with Microsoft Agent Framework and Auth0](https://daily.dev/posts/build-a-secure-rag-system-with-microsoft-agent-framework-and-auth0-hu7skfzuj) · Auth0 · 4 upvotes · 0 comments
- [Building Secure AI Agents with Microsoft Agent Framework and Auth0 Token Vault](https://daily.dev/posts/building-secure-ai-agents-with-microsoft-agent-framework-and-auth0-token-vault-ccjnfxrsp) · Auth0 · 2 upvotes · 0 comments
- [Microsoft Agent Framework \(Preview\): AI Agent Development for .NET](https://daily.dev/posts/microsoft-agent-framework-preview-ai-agent-development-for-net-uwehk5y4a) · Syncfusion · 2 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#authentication](https://daily.dev/tags/authentication), [#c#](https://daily.dev/tags/c#), [#blazor](https://daily.dev/tags/blazor)

[View this post on daily.dev](https://daily.dev/posts/building-secure-ai-agents-with-microsoft-agent-framework-part-1-rawd4wnwk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Building Secure AI Agents with Microsoft Agent Framework Part 1","url":"https://daily.dev/posts/building-secure-ai-agents-with-microsoft-agent-framework-part-1-rawd4wnwk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/building-secure-ai-agents-with-microsoft-agent-framework-part-1-rawd4wnwk"},"datePublished":"2026-08-03T14:11:07.941Z","dateModified":"2026-08-04T22:30:15.336Z","description":"A step-by-step guide to building an AI expense approval agent using the Microsoft Agent Framework (MAF) and Auth0 in a C# Blazor Web App on .NET 10. Part 1 of...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2c989f2b7410fe9383530b474c5ee769?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2c989f2b7410fe9383530b474c5ee769?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Auth0","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Auth0","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/6510ffa7350449618fbacdddae663b82","url":"https://daily.dev/sources/auth0"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/building-secure-ai-agents-with-microsoft-agent-framework-part-1-rawd4wnwk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,authentication,c#,blazor","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Auth0","item":"https://daily.dev/sources/auth0"},{"@type":"ListItem","position":3,"name":"Building Secure AI Agents with Microsoft Agent Framework Part 1"}]}
```

