Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

nissbran/identity-server-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IdentityServer4 workshop

The purpose of this workshop is an introduction to IdentityServer4 and how to apply it to a made up business problem.

Prerequisites

Business description

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

Problem description

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.

Setup the enviroment

Start an instance of EventStore.

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

Test the solution

  1. Open the solution file for the workshop.
  2. Compile and start the admin api.
  3. Import the Postman collection to postman
  4. Try creating some accounts and cards using postman. These request are in the Preparations folder in the Postman collection.

To the exercises

When everything is working, you can move on to the First exercise

About

Identity server workshop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages