Azure / Azure/azure-functions-dotnet-worker

Unable to access request certificate from Function Context Extension

Open
#1,997 1 comment 0 reactions 1 assignee Claimed by @RohitRanjanMS View on GitHub
area: http needs-discussion
Dominant language
C#
Stars
466
Forks
215
Avg merge
3d 10h
Merged PRs (30d)
7

Description

There is currently no way to get access to the certificate passed to the function app through the function context during local development (and perhaps when it is hosted as well).

The certificate is usually attached to the httpcontext but the httpcontext returned by the "GetHttpContext" extension method returns a null certificate.

This extension method is defined here:

Azure-functions-dotnet-worker/extensions/Worker.Extensions.Http.AspNetCore/src/FunctionContext
/FunctionContextExtensions.cs

If this method is non functional then certificate authentication is not possible. Is there perhaps another recommended way to access the request certificate? Or, are there additional configuration steps required in order to allow for the worker function to pass the certificate along?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.