Class AnonymousMembershipProvider
Allow any anonymous login.
Implements
Inherited Members
Namespace: FubarDev.FtpServer.AccountManagement
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class AnonymousMembershipProvider : IMembershipProvider
Constructors
| Improve this Doc View SourceAnonymousMembershipProvider()
Initializes a new instance of the AnonymousMembershipProvider class.
Declaration
public AnonymousMembershipProvider()
Remarks
Anonymous logins must provide an email address that at least seems to be valid (SimpleMailAddressValidation).
AnonymousMembershipProvider(IAnonymousPasswordValidator)
Initializes a new instance of the AnonymousMembershipProvider class.
Declaration
public AnonymousMembershipProvider(IAnonymousPasswordValidator anonymousPasswordValidator)
Parameters
Type | Name | Description |
---|---|---|
IAnonymousPasswordValidator | anonymousPasswordValidator | Anonymous login validation. |
Methods
| Improve this Doc View SourceCreateAnonymousPrincipal(Nullable<String>)
Create a claims principal for an anonymous (authenticated!) user.
Declaration
public static ClaimsPrincipal CreateAnonymousPrincipal(string? email)
Parameters
Type | Name | Description |
---|---|---|
Nullable<String> | The anonymous users e-mail address. |
Returns
Type | Description |
---|---|
ClaimsPrincipal | The anonymous claims principal. |
ValidateUserAsync(String, String)
Declaration
public Task<MemberValidationResult> ValidateUserAsync(string username, string password)
Parameters
Type | Name | Description |
---|---|---|
String | username | |
String | password |
Returns
Type | Description |
---|---|
Task<MemberValidationResult> |