.Net Core 3.x AuthenticationBuilder Best Practices

I’m looking for some guidance on the best way to set up OIDC Authentaction for a .NET Core 3.1 app I’m building.

This blog post from 2019 uses Microsoft.AspNetCore.Authentication.OpenIdConnect and the .AddOpenIdConnect method. It uses the /signin-oidc login redirect Uri.

However when looking at the sample code of the github repository for .Net Core 3.x application, it uses Okta.AspNetCore and the .AddOktaMvc method. It uses the /authorization-code/callback login redirect uri.

Is one of these method better than the other? I presume theat the Okta.AspNetCore uses the Microsoft.AspNetCore.Authentication.OpenIdConnect package but is one of them better for long term implementation?

@JayMac I suggest you follow the GH samples if it works for you as it is still under maintenance.

If you have any questions, you can also post issues in GH.

Ok, great. Thank you.