dotnet / dotnet/aspnetcore

Consider adding overloads of IsInRole(Async) and other methods which accept user id

Open
#5,790 0 comments 0 reactions 0 assignees View on GitHub
affected-few area-identity enhancement severity-nice-to-have
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

The old version of ASP.NET Identity had a lot of overloads of different methods that accepted user id instead of user object. In the current version only the User object overloads are left. This forces us to write code like this

`UserManager.IsInRoleAsync(new User { Id = userId }, "Admin");`

Please consider adding the overloads that accept userId.

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.