0.1.0 • Published 1 year ago
ftts-auth-test v0.1.0
Introduction
A Http function which can be rapidly deployed to test managed authentication. This mimics thie current authentication code we have in our components
Minimum Requirements
- node 14
- npm 7.20 or higher
Getting Started
- Clone the repo
- Run npm i to install the dependencies
Running Locally
v 2. Run npm run copy-config to create a local.settings.json file 3. Fill in the following values in local.settings.json - TENANT_ID, CLIENT_ID, CLIENT_SECRET 4. Run npm run func:start to run the function locally
On a local machine only client secret authentication can be tested
Running in Azure
- Run npm i to install the dependencies
- Run npm run build to build the project
- Deploy the function to azure via the VS Code Azure plugin using Node 14 to UK South
Once deployed you will need to configure the following env variables APPINSIGHTS_INSTRUMENTATIONKEY, SCOPE, USER_ASSIGNED_ENTITY_CLIENT_ID
Client Secret authentication should not be run in Azure when managed identity is present so we should not provide the following env vars TENANT_ID, CLIENT_ID, CLIENT_SECRET
0.1.0
1 year ago