dotnet / dotnet/aspnetcore

which authentication shceme is used to authenticate the current request

Open
#52,415 2 comments 0 reactions 0 assignees View on GitHub
area-auth enhancement
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is there an existing issue for this?

- [X] #54532

### Is your feature request related to a problem? Please describe the problem.

in my application we are using two authentication schemes and in my controller action I want to know the which authentication scheme is used for current request, so that I can execute related code.

### Describe the solution you'd like

Add property in ClaimsPrincipal and set it during authentication, so later it can be used to know which authentication scheme is used.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.