C
C#2y ago
NDOT

❔ Auth0 config problems

when see below
5 Replies
NDOT
NDOTOP2y ago
basically i have an common web api i was trying to use an authentication, with JWT using Auth0 but in all tutorials and examples on Auth0 docs they use older .NET versions, that in the past has the Startup.cs file, that doesn't exist anymore on .NET 6.0
Henkypenky
Henkypenky2y ago
better learn it now then it's not hard https://auth0.com/docs/quickstart/backend/aspnet-core-webapi/01-authorization and https://learn.microsoft.com/en-us/aspnet/core/migration/50-to-60?view=aspnetcore-7.0&tabs=visual-studio that should provide you with everything you need to understand startup.cs and program.cs unified into single program.cs with top level statements furthermore, don't follow guides, understand them, and if you don't understand something, ask questions 🙂
NDOT
NDOTOP2y ago
ah ok, it's basically everything encapsulated on the builder like builder.Configuration builder.Services awesome thanks for the tip it was very Marcos 🌹
Henkypenky
Henkypenky2y ago
yeah basically you just create a builder and add services to the container then build it and then create your http pipeline with the proper ordering top to bottom no methods (hence the top level statements)
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server