{"id":19645810,"url":"https://github.com/approov/quickstart-azure-api-management","last_synced_at":"2026-06-10T03:31:35.790Z","repository":{"id":46216271,"uuid":"364675382","full_name":"approov/quickstart-azure-api-management","owner":"approov","description":"Approov quickstart to implement the Approov token check in Azure API management platform.","archived":false,"fork":false,"pushed_at":"2022-12-20T18:37:58.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-01-09T20:53:46.680Z","etag":null,"topics":["api","api-gateway","api-security","approov","approov-backend","approov-backend-quicksart","approov-integration","approov-quickstart","azure","security"],"latest_commit_sha":null,"homepage":"https://approov.io","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/approov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-05T18:46:11.000Z","updated_at":"2022-04-15T16:33:27.000Z","dependencies_parsed_at":"2023-01-30T01:31:08.562Z","dependency_job_id":null,"html_url":"https://github.com/approov/quickstart-azure-api-management","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/approov%2Fquickstart-azure-api-management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/approov%2Fquickstart-azure-api-management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/approov%2Fquickstart-azure-api-management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/approov%2Fquickstart-azure-api-management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/approov","download_url":"https://codeload.github.com/approov/quickstart-azure-api-management/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240952988,"owners_count":19884020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-gateway","api-security","approov","approov-backend","approov-backend-quicksart","approov-integration","approov-quickstart","azure","security"],"created_at":"2024-11-11T14:35:28.194Z","updated_at":"2026-06-10T03:31:35.785Z","avatar_url":"https://github.com/approov.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Approov QuickStart - Azure API Management\n\n[Approov](https://approov.io) is an API security solution used to verify that requests received by your API services originate from trusted versions of your mobile apps.\n\nThis repo implements the Approov API request verification for the [Azure API Management Platform](https://azure.microsoft.com/en-gb/services/api-management), which performs the verification check on the Approov Token before allowing valid traffic to reach the API endpoint.\n\nIf you are looking for another Approov integration you can check our list of [quickstarts](https://approov.io/docs/latest/approov-integration-examples/backend-api/), and if you don't find what you are looking for, then please let us know [here](https://approov.io/contact).\n\n\n## Approov Integration Quickstart\n\nThe quickstart assumes that you already have an Azure API management platform running, and that your are familiar with managing it.\n\nThe quickstart was tested with the following Operating Systems:\n\n* Ubuntu 20.04\n* MacOS Big Sur\n* Windows 10 WSL2 - Ubuntu 20.04\n\nIf you find yourself lost or blocked in some part of the quickstart, then you can check the [detailed quickstart](docs/APPROOV_TOKEN_QUICKSTART.md).\n\nFirst, setup the [Approov CLI](https://approov.io/docs/latest/approov-installation/index.html#initializing-the-approov-cli).\n\nNow, register the API domain for which Approov will issues tokens:\n\n```bash\napproov api -add api.example.com\n```\n\n\u003e **NOTE:** By default a symmetric key (HS256) is used to sign the Approov token on a valid attestation of the mobile app for each API domain it's added with the Approov CLI, so that all APIs will share the same secret and the backend needs to take care to keep this secret secure.\n\u003e\n\u003e A more secure alternative is to use asymmetric keys (RS256 or others) that allows for a different keyset to be used on each API domain and for the Approov token to be verified with a public key that can only verify, but not sign, Approov tokens.\n\u003e\n\u003e To implement the asymmetric key you need to change from using the symmetric HS256 algorithm to an asymmetric algorithm, for example RS256, that requires you to first [add a new key](https://approov.io/docs/latest/approov-usage-documentation/#adding-a-new-key), and then specify it when [adding each API domain](https://approov.io/docs/latest/approov-usage-documentation/#keyset-key-api-addition). Please visit [Managing Key Sets](https://approov.io/docs/latest/approov-usage-documentation/#managing-key-sets) on the Approov documentation for more details.\n\nNext, enable your Approov `admin` role with:\n\n```bash\neval `approov role admin`\n````\n\nFor the Windows powershell:\n\n```bash\nset APPROOV_ROLE=admin:___YOUR_APPROOV_ACCOUNT_NAME_HERE___\n```\n\nNow, retrieve the Approov secret:\n\n```bash\napproov secret -get base64\n```\n\nNext, add the Approov secret, and it **MUST** be as a *named value* by following [their instructions](https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-properties?tabs=azure-portal), and we recommend to use `approov-base64-secret` as its name. **Never** use it directly in the policy statement.\n\nThe named value for the Approov secret **MUST** be created using the type `secret` to guarantee that is stored encrypted. You can also create it using the type `key vault`, that will retrieve it from the [Azure Key Vault](https://docs.microsoft.com/en-us/azure/key-vault/general/quick-create-portal), therefore you must have already created it there.\n\n\u003e **IMPORTANT:** Never add the Approov Secret with the type `plain text` for the named value.\n\nFinally, add an inbound processing policy to the API you want to protect with Approov, by using the `validate-jwt` [policy](https://docs.microsoft.com/en-us/azure/api-management/api-management-access-restriction-policies#ValidateJWT) with this policy statement:\n\n```xml\n\u003cpolicies\u003e\n    \u003cinbound\u003e\n        \u003cbase /\u003e\n        \u003cvalidate-jwt header-name=\"Approov-Token\" failed-validation-httpcode=\"401\" failed-validation-error-message=\"Unauthorized\" require-expiration-time=\"true\" require-signed-tokens=\"true\"\u003e\n            \u003cissuer-signing-keys\u003e\n                \u003c!-- Replace approov-base64-secret with whatever you have used to add the Approov Secret as a named value. --\u003e\n                \u003ckey\u003e{{approov-base64-secret}}\u003c/key\u003e\n            \u003c/issuer-signing-keys\u003e\n        \u003c/validate-jwt\u003e\n    \u003c/inbound\u003e\n\u003c/policies\u003e\n```\n\nNot enough details in the bare bones quickstart? No worries, check the [detailed quickstart](docs/APPROOV_TOKEN_QUICKSTART.md) that contain a more comprehensive set of instructions, including how to test the Approov integration.\n\n\n## More Information\n\n* [Approov Overview](OVERVIEW.md)\n* [Detailed Quickstart](docs/APPROOV_TOKEN_QUICKSTART.md)\n* [Testing](docs/APPROOV_TOKEN_QUICKSTART.md#test-your-approov-integration)\n\n\n## Issues\n\nIf you find any issue while following our instructions then just report it [here](https://github.com/approov/quickstart-azure-api-management/issues), with the steps to reproduce it, and we will sort it out and/or guide you to the correct path.\n\n\n## Useful Links\n\nIf you wish to explore the Approov solution in more depth, then why not try one of the following links as a jumping off point:\n\n* [Approov Free Trial](https://approov.io/signup)(no credit card needed)\n* [Approov Get Started](https://approov.io/product/demo)\n* [Approov QuickStarts](https://approov.io/docs/latest/approov-integration-examples/)\n* [Approov Docs](https://approov.io/docs)\n* [Approov Blog](https://approov.io/blog/)\n* [Approov Resources](https://approov.io/resource/)\n* [Approov Customer Stories](https://approov.io/customer)\n* [Approov Support](https://approov.io/contact)\n* [About Us](https://approov.io/company)\n* [Contact Us](https://approov.io/contact)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapproov%2Fquickstart-azure-api-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapproov%2Fquickstart-azure-api-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapproov%2Fquickstart-azure-api-management/lists"}