Azure Api management Is it possible to disable Subscription Key
Asked Answered
M

2

7

Is it a must that Subscription Key sent as part of the request when call through API Managment? is there a way to disable this option?

Maki answered 17/7, 2018 at 8:6 Comment(2)
Related post - How to disable subscription key in Azure API Managment with PowershellCasaba
How to solve the problem without disabling the subscription key - API management URL is giving Missing subscription key IssueCasaba
B
9

Create a new product and uncheck "Require subscription" in its settings. Any API added to such product will be callable without a key, i.e. anonymously.

enter image description here

enter image description here

Bird answered 17/7, 2018 at 16:57 Comment(5)
I did not think the answer is true - but I tested it and yes, you can call APIs linked to a product where "requires subscription" is unchecked without subscription key; now after I removed the product I still can call the API w/o subscription key - let's wait, how long this persistsWenger
I would not rely on this behavior this is a bug and will be fixed. By design APIs have to belong to an open product to be callable anonymously. Why did you remove the product?Bird
I just wanted so see if it works - I no not want to have this behavior at all.Wenger
@KaiWalter, Is it a bug or a feature ? :D means is it still there or not..Scrofula
Can anyone comment on this? #76287028Brooke
T
0

if you already have an API created and binded to your product, you need to do this.

  1. Remove the Subscription Required option from your product.
  2. go to the APIs section, select your existing API and from the Settings tab, you can remove the checkbox "subscription Required".

enter image description here

Tidings answered 29/3, 2023 at 12:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.