Skip to content

425show/Apim-JWTValidation-automation

Repository files navigation

Create App Registration for Graph Access

Permissions needed

Create SP for APIM management

Docs

az ad sp create-for-rbac --sdk-auth -n "apim-admin" 
   --role "API Management Service Contributor" 
   --scopes /subscriptions/<subscriptionId>/resourceGroups/<rgname>/providers/Microsoft.ApiManagement/service/<ApimName>

{
  "clientId": "778671d4-7b9d-44b2-aab3-5bdff51a7196",
  "clientSecret": "IEqU2CYWp2Egndes1yK0jZ.FxQo~fBzWxi",
  "subscriptionId": "7ab070b2-d112-4fe1-ae56-92978ac7e02a",
  "tenantId": "a3224a3f-3d62-4b9a-b070-dd7305016a23",
  "activeDirectoryEndpointUrl": "https://login.microsoftonline.com",
  "resourceManagerEndpointUrl": "https://management.azure.com/",
  "activeDirectoryGraphResourceId": "https://graph.windows.net/",
  "sqlManagementEndpointUrl": "https://management.core.windows.net:8443/",
  "galleryEndpointUrl": "https://gallery.azure.com/",
  "managementEndpointUrl": "https://management.core.windows.net/"
}

Add new JWT Validate policy in APIM

Docs

The current signed in user needs to have the following role assignment (at minimum)

  "roleDefinitionName": "API Management Service Contributor",
  "scope": "/subscriptions/<sub ID>/resourceGroups/<RG Name?/providers/Microsoft.ApiManagement/service/<APIM Name>"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages