-
Notifications
You must be signed in to change notification settings - Fork 1
Setting up ASP.NET Core Web App
Now you need to create the Web App (blue box) and wire it up with Auth0 (orange box).

In Visual Studio 2017, create a new project ASP.NET Core Web Application using the template Web Application (Model-View-Controller).
For more information see ASP.NET Core Init
Configure the created Web App with Auth0 Application credentials such as Domain, Client ID and Client Secret.
-
Domain:
olegburov.auth0.com -
Client ID:
vRmDy1JB5sN1j6OqyKP5obij6C4s6BcW -
Client Secret:
uhPo80PC1GB3ZJsIzbO61-DDmUjb3W6BNtOZpBeSUmsthosE_9zdrz2GY73OCdTg
For more information see ASP.NET Core AppSettings
ASP.NET Core Team has done a terrific job. To wire up Auth0 with Web App is so easy. What you need to do is just configure Authentication middleware as a service using the OpenID Connect protocol, and then enable it. That's it!
For more information see ASP.NET Core Middleware
Add actions for a user to sing in and sign out using Auth0 through OpenID Connect provider, which has been already configured in the previous step.
For more information see ASP.NET Core Login
Show a user's information based on the data received from Auth0.
For more information see ASP.NET Core Profile
To add authentication based on custom roles are already built-in. What you need to do just tell OpenID Connect middleware where to get roles from the data returned from Auth0.
For more information see ASP.NET Core Roles
Home | Web App | Web API | Auth0 | Auth0 Portal