Azure-Samples / active-directory-b2c-dotnet-webapp-and-webapi

A combined sample for a .NET web application that calls a .NET web API, both secured using Azure AD B2C
http://aka.ms/aadb2c
MIT License
274 stars 236 forks source link

Asp.NET Core #35

Closed JimBobSquarePants closed 3 years ago

JimBobSquarePants commented 6 years ago

This repo is linked directly from documentation specific to ASP.NET Core.

https://docs.microsoft.com/en-us/aspnet/core/security/authentication/azure-ad-b2c-webapi?view=aspnetcore-2.1

See link Call a .NET web API from a .NET web app using Azure AD B2C. below the code sample within Next Steps section)

Yet the codebase here is targeting the full NET Framework and legacy MVC. I've yet to find an adequate sample that performs the same functionality as this application but targeting Core.

Can we get a branch or repo with a more up to date target?

GaryTosh commented 6 years ago

Couldn't agree more with this request... really struggling to get this working with .net core 2.1.

Securing the web app is easy.... it's the getting of the access_token to past over to the api that's proving difficult.

We have managed to get it working using this example https://github.com/chrispadgettlivecom/WebApp-OpenIDConnect-DotNetCore21 but this seems to reinvent the wheel a bit.

jondmcelroy commented 5 years ago

It is also pointing to the MSAL 1.1.0-preview library, when we are now up to 2.6.0-preview. Would love for this to get an update.

Anduin2017 commented 5 years ago

+1. Waitting for .NET Core version.

TiagoBrenck commented 5 years ago

@Anduin2017 the sample will be available soon on this repo: https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2

Anduin2017 commented 5 years ago

I got the example

https://github.com/Azure-Samples/active-directory-b2c-dotnetcore-webapp

TiagoBrenck commented 4 years ago

Please, refer to this .NET Core sample: https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/tree/master/4-WebApp-your-API/4-2-B2C

jennyf19 commented 3 years ago

closing, as @TiagoBrenck has linked above the current b2c sample.