-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #93 Differences between this change and the PR: - No changes to IFtpUser - No `AuthorityId` - No changes to `IUnixFileSystemEntry` - No `PrincipalUser` - No changes to `FtpServerOptions` - PASV configuration is already configurable through `PasvListenerOptions` - LogOut became LogOutAsync in `IMembershipProviderAsync`
- Loading branch information
1 parent
d0887cd
commit 6ff4349
Showing
17 changed files
with
239 additions
and
30 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
41 changes: 41 additions & 0 deletions
41
src/FubarDev.FtpServer.Abstractions/AccountManagement/IMembershipProviderAsync.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// <copyright file="IMembershipProviderAsync.cs" company="Fubar Development Junker"> | ||
// Copyright (c) Fubar Development Junker. All rights reserved. | ||
// </copyright> | ||
|
||
using System.Security.Claims; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace FubarDev.FtpServer.AccountManagement | ||
{ | ||
/// <summary> | ||
/// Membership provider interface. | ||
/// </summary> | ||
/// <remarks> | ||
/// This interface must be implemented to allow the username/password authentication. | ||
/// </remarks> | ||
public interface IMembershipProviderAsync : IMembershipProvider | ||
{ | ||
/// <summary> | ||
/// Validates if the combination of <paramref name="username"/> and <paramref name="password"/> is valid. | ||
/// </summary> | ||
/// <param name="username">The user name.</param> | ||
/// <param name="password">The password.</param> | ||
/// <param name="cancellationToken">The <see cref="CancellationToken"/>.</param> | ||
/// <returns>The result of the validation.</returns> | ||
Task<MemberValidationResult> ValidateUserAsync( | ||
string username, | ||
string password, | ||
CancellationToken cancellationToken = default); | ||
|
||
/// <summary> | ||
/// Logout of the given <paramref name="principal"/>. | ||
/// </summary> | ||
/// <param name="principal">The principal to be logged out.</param> | ||
/// <param name="cancellationToken">The <see cref="CancellationToken"/>.</param> | ||
/// <returns>The task.</returns> | ||
Task LogOutAsync( | ||
ClaimsPrincipal principal, | ||
CancellationToken cancellationToken = default); | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.