5 Replies
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
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 🙂ah ok, it's basically everything encapsulated on the builder
like
builder.Configuration
builder.Services
awesome
thanks for the tip
it was very 🌹
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)
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.