This tutorial will show you how to install IdentityServer with in-memory store. You will write a basic API that will be protected by IdentityServer and web client. Then call said API via the web client.
EDIT: Here is the link to the source code: https://github.com/kevinrjones/SettingUpIdentityServer