Azure / Azure/azure-functions-host

v1: JWT authentication doesn't work with bearer token

Open
#2,479 6 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

This is a bit of a weird issue. I don't have too many details so far, but here is what I'm seeing.

In Fairfax cloud, the same jwt token:
- works for any `/admin/*` API
- Doesn't work for any `/api/functionName` invoke APIs.

This is only limited to Fairfax for some reason. Germany and China clouds are fine.

I'm not sure what else to look at. There is nothing in the host log file about these 401s. It's a consistent repro for me.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by reproducing the 401 on Fairfax for /api/functionName while comparing the same JWT on /admin/* and on the Germany and China clouds; inspect host logs and authentication handling. Done means identifying the Fairfax-specific rejection and covering the behavior with a regression test or documented evidence.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
api, authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.