Azure / Azure/azure-functions-dotnet-worker
ClaimsPrincipal is null when StaticWebAppsAuthCookie is set.
- Dominant language
- C#
- Stars
- 466
- Forks
- 215
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 7
Description
I'm currently trying to get the ClaimsPrincipal from my isolated process Azure Function.
Initially I had the same issue as specified here: https://github.com/Azure/azure-functions-dotnet-worker/issues/694.
I upgraded to 1.6 and this fixed my claims being empty. However my ClaimsPrincipal is null.
I have the exact same function with the only difference being that its not a isolated process and the Claims Principal is NOT null. Initially I thought that once the claims got populated that the ClaimsPrincipal will magically work but this was not the case.

Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue in an isolated-process Azure Function with StaticWebAppsAuthCookie set, then compare the ClaimsPrincipal result with the equivalent non-isolated function. Done means the isolated function exposes a non-null ClaimsPrincipal while retaining the populated claims.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- authentication, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100