Skip to Content
Serverless computing in Azure with .NET
book

Serverless computing in Azure with .NET

by Sasha Rosenbaum
August 2017
Intermediate to advanced
468 pages
12h 5m
English
Packt Publishing
Content preview from Serverless computing in Azure with .NET

HTTP trigger

When using the API key mode, the key can be passed as a query string variable or an HTTP header.

To be secure, the API key authorization must be used in combination with transport layer encryption (TLS, formerly, SSL), to prevent the API key from being passed over HTTP in clear text, and possibly being stolen during a man-in-the-middle attack (https://www.owasp.org/index.php/Man-in-the-middle_attack).

There are two ways to pass the API key to the function:

  • In a query string parameter
  • In the HTTP request header

If using a query string parameter to pass the API key, the request made to the function will look like the following:

https://<AppName>.azurewebsites.net/api/<FunctionName>?code=<ApiKey>

Note that it is best practice ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni
Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali

Publisher Resources

ISBN: 9781787288393Supplemental Content