Azure / Azure/azure-functions-host
Authentication Scheme and Authorization policy Registration in Startup in Azure Function V2
- Dominant language
- C#
- Stars
- 2k
- Forks
- 482
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 38
Description
Can we register Authentication Scheme and Authorization policy in startup which inherits **FunctionsStartup**. While I am trying, I am getting below exception.
**Microsoft.AspNetCore.Authentication.Core: No authentication handler is registered for the scheme 'WebJobsAuthLevel'. The registered schemes are: AADScheme. Did you forget to call AddAuthentication().AddSomeAuthHandler**
Contributor guide
Research direction
Start by reproducing the reported exception when registering an authentication scheme and authorization policy in a FunctionsStartup for Azure Functions V2, paying attention to the AADScheme and WebJobsAuthLevel names in the message. Done means the custom scheme and policy can be registered without the missing-handler exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- authentication, authorization, cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100