C
Join ServerC#
help
❔ Auth0 config problems
CCavalcanti2/28/2023


CCavalcanti2/28/2023
basically i have an common web api
CCavalcanti2/28/2023
i was trying to use an authentication, with JWT using Auth0
CCavalcanti2/28/2023
but
CCavalcanti2/28/2023
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
HHenkypenky2/28/2023
better learn it now then
HHenkypenky2/28/2023
it's not hard
HHenkypenky2/28/2023
HHenkypenky2/28/2023
and
HHenkypenky2/28/2023
that should provide you with everything you need to understand
startup.cs
and program.cs
unified into single program.cs
with top level statementsHHenkypenky2/28/2023
furthermore, don't follow guides, understand them, and if you don't understand something, ask questions 🙂
CCavalcanti2/28/2023
ah ok, it's basically everything encapsulated on the builder
like
builder.Configuration
builder.Services
awesome
like
builder.Configuration
builder.Services
awesome
CCavalcanti2/28/2023
thanks for the tip
CCavalcanti2/28/2023
it was very helpful
CCavalcanti2/28/2023

HHenkypenky2/28/2023
yeah basically you just create a builder and add services to the container
HHenkypenky2/28/2023
then build it
HHenkypenky2/28/2023
and then create your http pipeline
HHenkypenky2/28/2023
with the proper ordering
HHenkypenky2/28/2023
top to bottom
HHenkypenky2/28/2023
no methods (hence the top level statements)
AAccord3/1/2023
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.