Skip to content

Commit 3c9506e

Browse files
BREAKING CHANGE: Remove support for Claims Principal Extensions (#144)
These extensions have the potential to lead people astray - and methods like`GetRoles` can be misleading because a `ClaimsIdentity` already stores on itself which claim type represents roles, but this is hardcoding a specific string.
1 parent 41f2c04 commit 3c9506e

File tree

3 files changed

+0
-108
lines changed

3 files changed

+0
-108
lines changed

IntelliTect.Multitool.Tests/ClaimsPrincipalExtensionsTests.cs

-59
This file was deleted.

IntelliTect.Multitool/Security/ClaimsPrincipalExtensions.cs

-43
This file was deleted.

README.md

-6
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@
5252
string fullPathToTheFile = Path.Combine(IntelliTect.Multitool.RepositoryPaths.GetDefaultRepoRoot(), "TheFile.txt");
5353
```
5454

55-
## Security
56-
57-
- ClaimsPrincipalExtensions: Extension methods to get a user ID and roles.
58-
- `GetUserId`
59-
- `GetRoles`
60-
6155
## Extensions
6256

6357
- StringExtensions: Extension methods for `System.String`

0 commit comments

Comments
 (0)