This sample shows how to create a Configuration API host, authenticate it using an initial access token obtained from IdentityServer, call it to provision a client, and use that new client to call an API.
link to source code