This repository has been archived by the owner on Jan 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1820 from damianh/v2-claims
Replacing current "user" objects with ClaimsPrincipal/ClaimsIdentity
- Loading branch information
Showing
81 changed files
with
375 additions
and
3,091 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
namespace Nancy.Authentication.Basic | ||
{ | ||
using Nancy.Security; | ||
using System.Security.Claims; | ||
|
||
/// <summary> | ||
/// Provides a way to validate the username and password | ||
/// </summary> | ||
public interface IUserValidator | ||
{ | ||
/// <summary> | ||
/// Validates the username and password | ||
/// </summary> | ||
/// <param name="username">Username</param> | ||
/// <param name="password">Password</param> | ||
/// <returns>A value representing the authenticated user, null if the user was not authenticated.</returns> | ||
IUserIdentity Validate(string username, string password); | ||
} | ||
} | ||
/// Provides a way to validate the username and password | ||
/// </summary> | ||
public interface IUserValidator | ||
{ | ||
/// <summary> | ||
/// Validates the username and password | ||
/// </summary> | ||
/// <param name="username">Username</param> | ||
/// <param name="password">Password</param> | ||
/// <returns>A value representing the authenticated user, null if the user was not authenticated.</returns> | ||
ClaimsPrincipal Validate(string username, string password); | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
src/Nancy.Authentication.Forms.Tests/Fakes/FakeUserIdentity.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
src/Nancy.Authentication.Stateless/StatelessAuthenticationConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 0 additions & 117 deletions
117
src/Nancy.Authentication.Token.Tests/Nancy.Authentication.Token.Tests.csproj
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.