Create multiple subscription keys for one API in Azure

39 views Asked by At

I am looking for a fast victory to protect an API with multiple subscription keys, in order to assign them to different providers and allow access individually. I know that Oauth2 could be the best fit for this goal but, multiple subscription keys could be an option?

Thanks in advance

1

There are 1 answers

0
John On

You can use Azure API Management aka APIM to secure your API. With this you have several options.

You can create subscription keys for each consumer setting what they can access. This is quicker and easier to set up for both sides.

Alternatively, if your consumers can, you can set up an OAuth flow which is more secure.

Which you choose will depend on your situation.