Configuration for Azure
Enable JWT Authentication in Cloud API Configuration for Azure.
Ensure that JWT authentication is properly configured by setting the following parameters:
Navigation:
- From Azure console, navigate to Function App and select protect function app.
- Navigate to Settings > Environment variables
Configuration Parameters to add / update:
Set OPENID_ENABLED to
false.Set
authorizationtojwt:- This specifies that JWT authentication will be used to secure the API.
Set
jwt_verifyto1:- Enables verification of the JWT token during API requests.
Set
jwt_secret_base64to the Public Key (PEM Base64 Encoded):- Use the
jwt_signing_keypublic key obtained from Retrieve JWT Public Signing Key .
- Use the
Set
jwt_user_claimtoupnoremail:- Choose the claim used to identify the user. Typically, User Principal Name (upn) or
emailis selected based on your organization’s Entra ID configuration.
- Choose the claim used to identify the user. Typically, User Principal Name (upn) or
Obtain the Gateway URL:
After deploying the Cloud API using ARM, retrieve the API endpoint URL for the service:
From Azure Management console,
- Navigate to the deployed API Management gateway.
- Under APIs, select the Cloud API.
- Locate the Gateway URL (base URL) for the API.
- Append the operation path
/v1/unprotectto the gateway URL. - Record the complete endpoint URL for use in the Browser Protector configuration and also pass code query parameter.
protector_endpoint_url: <>
example: https://{apim-name}.azure-api.net/api/v1/unprotect?code={appKey}
Feedback
Was this page helpful?