Interface AzureFunctionsAuthentication

All Superinterfaces:
HttpDestinationAuthentication
All Known Subinterfaces:
ExtensionAzureFunctionsAuthentication

public interface AzureFunctionsAuthentication extends HttpDestinationAuthentication

To protect your Azure Function, set its authLevel to function and provide the function's key to be used inside the x-functions-key header. For more information, see the Azure Functions documentation.

To protect the secret key from being exposed, remove the code parameter and secret key from the URL. For example, use https://foo.azurewebsites.net/api/bar instead of https://foo.azurewebsites.net/api/bar?code=secret.


Example to create an instance using the builder pattern

     AzureFunctionsAuthentication azureFunctionsAuthentication = AzureFunctionsAuthentication.builder()
             .key("{key}")
             .build()
 
  • Field Details

    • AZURE_FUNCTIONS

      static final String AZURE_FUNCTIONS
      discriminator value for AzureFunctionsAuthentication
      See Also:
  • Method Details