Azure-Samples / active-directory-aspnetcore-webapp-openidconnect-v2

An ASP.NET Core Web App which lets sign-in users (including in your org, many orgs, orgs + personal accounts, sovereign clouds) and call Web APIs (including Microsoft Graph)
MIT License
1.37k stars 983 forks source link

Please update your client sample to use Blazor Web App in .NET 8 #731

Closed akhanalcs closed 9 months ago

akhanalcs commented 11 months ago

Is your feature request related to a problem? Please describe.

Yes, the samples are outdated. I'm not able to make my Blazor client app (server side) call a protected API using the sample shown here: https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/tree/master/4-WebApp-your-API I've spent almost a day on this and still haven't been able to figure this out. This is quite frustrating.

Describe the solution you'd like

Write the client app in .NET 8 using Blazor Web App.

Describe alternatives you've considered

I don't have any. If I can make it work. I'll share my repo here.

Additional context

N/A

akhanalcs commented 11 months ago

I finally made it work in .NET 7. Take a look at this: https://github.com/affableashish/blazor-api-aadb2c

jennyf19 commented 9 months ago

thanks for the link. closing.