The identity server for Power Planner accounts
Followed instructions from here for adding IdentityServer4 to the project
Also using these instructions for how to use a custom database store for user credentials
- In the Azure Portal, open an existing Key Vault resource or create a new one
- In the key vault, select Certificates and generate a new certificate, leave all the default options (make sure it's PKCS #12)
- Now, create a new web app for the identity server
- In the application settings, add WEBSITE_LOAD_USER_PROFILE = 1. Otherwise the certificate key will fail to load
- Select the Identity option and enable System assigned identity which will allow setting up access to Azure Key Vault.
- Switch back to the Key Vault, go to Access policies, and add a new one. Select the principal as the name of the web app, set the Certificate permissions to Get and List, and save.
- Install Azure CLI and log in if you haven't yet
- Deploy the site!