Auth repository contains workflow for working with authentication and authorization.
Various concepts like IdentityServer4, OAuth, OpenID Connect, external providers are covered through the code.
Next branchses are available:
simple-client-credentials
- Protecting an API using Client Credentialsinteractive-ui-external-auth
- Interactive Applications with ASP.NET Coreapi-access-from-mvc-client
- ASP.NET Core and API accessjavascript-client
- Adding a JavaScript cliententity-framework
- Using EntityFramework Core for configuration and operational dataidentity
- Using ASP.NET Core Identity
Available projects from the solution will be available through the ports:
-
IdentityServer
: 5001 -
IdentityServerAspNetIdentity
: 5001 (run only one of the identity servers) -
Api
: 6001 -
MvcClient
: 5002 -
JavaScriptClient
: 5003 -
ReactClient
: 6003 (ReactClient is not configured for work with IdentityServer, it's just initial project)
Please note that sensitive information (like client secret) shouldn't be stored in the source code of your application.