New to OIDC and Azure AD B2C.
Working my way through the demo sample at
- https://github.com/Azure-Samples/active-directory-b2c-dotnet-webapp-and-webapi.git
- https://docs.microsoft.com/azure/active-directory-b2c/active-directory-b2c-devquickstarts-web-dotnet-susi
The demo worked fine, over .NET 4.6.1... Hence committed to delivering it within an existing app.
Spoke too soon: when integrated into an existing app, again based on .NET 4.6.1, already using later Microsoft.Owin.* Nuget packages, I cannot get the solution to work.
Specifically (for starters?):
Even after updating references of JwtFormat and other classes to using Microsoft.Owin.Security.Jwt, the following can no longer be compiled:
AccessTokenFormat = new JwtFormat(tvps, new OpenIdConnectCachingSecurityTokenProvider(String.Format(AadInstance, Tenant, DefaultPolicy)))
within the following page:
The issue is quickly demonstrated by
- downloading the git
- compiling
- Updating the nuget packages to latest versions
- unable to compile...
I guess the questions are:
- Is there a new way to integrate with Azure AD B2C over OIDC that has been developed, and the above code is no longer best practice (if so, where could I find documentation and preferably a new sample)
- If the above demo remains relevant...what/where should I change to make it work?
- Is the only option forward to work with Azure AD B2C (at this point in time) to roll the whole team back to earlier versions of Microsoft.Owin* Assemblies?