C
C#17mo ago
NDOT

❔ Auth0 config problems

when see below
5 Replies
NDOT
NDOT17mo 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
Henkypenky17mo 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
NDOT17mo 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
Henkypenky17mo 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
Accord17mo 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
More Posts