TBD
- Install and start the Cosmos DB emulator.
- Open solution in VS and make sure the Environment variables are set in the
TokenProvider
project - Build and start the
TokenProvider
project - Send a GET request to
http://localhost:7071/api/cosmos/token
with atoken
header containing a JWT token which has aupn
claim - Response should contain an array of resource tokens
There is only 1 role supported today named "Default".
TOKEN_PROVIDER_COSMOS_ENDPOINT
: URL of the Cosmos DB resource (aka https://localhost:8081)TOKEN_PROVIDER_COSMOS_MASTERKEY
: Master Key of the Cosmos DB resourceTOKEN_PROVIDER_COSMOS_DEFAULT
: Permission string for the "Default" roleTOKEN_PROVIDER_COSMOS_DEFAULT_KEYS
: Keys for environment variables that contain permission strings for the "Default" role