The purpose of this workshop is an introduction to IdentityServer4 and how to apply it to a made up business problem.
- Visual Studio 2017 Update 15.4
- Postman (https://www.getpostman.com/)
- .NET Core SDK 2.1 (https://www.microsoft.com/net/download/windows)
- EventStore 4 (https://eventstore.org/downloads/EventStore-OSS-Win-v4.1.1-hotfix1.zip)
We have an business application handles transactions for cards. This application consists of a number of services:
- A Transaction api -- When an customer uses his or her card in a store the transaction api is called.
- A Admin api -- Used by the admin web.
- A Admin web -- Allow card admins to create cards.
- A Statistics web -- Allows card admins to se statistics for card purchases
None of the applications in the business description contain any authentication or authorization. The goal of this workshop is to implement both with the help of IdentityServer4.
Open an cmd prompt and go to the unzipped catalog of EventStore. Run the following command to start an instance of EventStore:
EventStore.ClusterNode.exe -RunProjections All -StartStandardProjections
Or, if you have docker and docker-compose installed you can run:
docker-compose up
- Open the solution file for the workshop.
- Compile and start the admin api.
- Import the Postman collection to postman
- Try creating some accounts and cards using postman. These request are in the Preparations folder in the Postman collection.
When everything is working, you can move on to the First exercise