Skip to content

azure-App-Service-Function-App-Pocs/Java-Function-App-client-certificate-validation-tls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java-Function-App-client-certificate-validation-tls

Java Function App using incoming Client Certificate to authenticate user with Function App execution


page_type: sample languages:

  • java products:
  • function app description: "Java Function App using incoming Client Certificate to authenticate user with Function App execution" urlFragment: "update-this-to-unique-url-stub"

Sample

This repository shows a sample Java Function App using incoming Client Certificate to authenticate user with Function App execution.

Contents

Outline the file contents of the repository.

File/folder Description
src/ Java application source folder
.gitignore Define what to ignore at commit time.
README.md This README file.
LICENSE The license for the sample.

Prerequisites

You should have the following development tools installed on your local machine.

You will also need accounts for the following services

Running the sample

Build and test locally

Before deploying to App Service, build and run the Function locally.

mvn clean package
mvn azure-functions:run

Open a browser to http://localhost:7071/api/auth and should display 401 - UNAUTHORIZED, which is normal because we are not making the call with calls with certificate.

Publish the application to a Function App

Now that the Function App works locally, we will push the jar to our registry so our Function App can run the jar. First, run the below command to be login into Azure Cli and deploy to a specific Function App.

az login
mvn azure-functions:deploy

Once your Function App is deployed, you can now just simply enable Incoming Client Certificate on Azure so incoming requests are challeneged.

About

Java Function App using incoming Client Certificate to authenticate user with Function App execution

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages