Method | Description | |
---|---|---|
AddCredential ( User user, Credential credential ) : System.Threading.Tasks.Task | ||
Authenticate ( Credential credential ) : Task |
||
Authenticate ( string userNameOrEmail, string password ) : Task |
||
AuthenticateExternalLogin ( IOwinContext context ) : Task |
||
AuthenticationService ( IEntitiesContext entities, IAppConfiguration config, IDiagnosticsService diagnostics, NuGetGallery.Auditing.AuditingService auditing, IEnumerable |
||
Challenge ( string providerName, string redirectUrl ) : System.Web.Mvc.ActionResult | ||
ChangePassword ( User user, string oldPassword, string newPassword, bool resetApiKey ) : Task |
||
CreateIdentity ( User user, string authenticationType ) : |
||
CreateSessionAsync ( IOwinContext owinContext, NuGetGallery.Authentication.AuthenticatedUser user ) : System.Threading.Tasks.Task | ||
DescribeCredential ( Credential credential ) : CredentialViewModel | ||
GeneratePasswordResetToken ( User user, int expirationInMinutes ) : System.Threading.Tasks.Task | ||
GeneratePasswordResetToken ( string usernameOrEmail, int expirationInMinutes ) : Task |
||
ReadExternalLoginCredential ( IOwinContext context ) : Task |
||
Register ( string username, string emailAddress, Credential credential ) : Task |
||
RemoveCredential ( User user, Credential cred ) : System.Threading.Tasks.Task | ||
ReplaceCredential ( User user, Credential credential ) : System.Threading.Tasks.Task | ||
ReplaceCredential ( string username, Credential credential ) : System.Threading.Tasks.Task | ||
ResetPasswordWithToken ( string username, string token, string newPassword ) : Task |
||
ValidatePasswordCredential ( IEnumerable |
Method | Description | |
---|---|---|
AuthenticationService ( ) : System |
This ctor is used for test only.
|
Method | Description | |
---|---|---|
CalculateAccountUnlockTime ( int failedLoginCount, System.DateTime lastFailedLogin ) : System.DateTime | ||
FindByUserNameOrEmail ( string userNameOrEmail ) : User | ||
FindMatchingCredential ( Credential credential ) : Credential | ||
FormatCredentialType ( string credentialType ) : string | ||
FormatExternalCredentialType ( string externalType ) : string | ||
GetCredentialKind ( string type ) : CredentialKind | ||
InitCredentialFormatters ( ) : void | ||
IsAccountLocked ( User user, int &remainingMinutes ) : bool | ||
MigrateCredentials ( User user, List |
||
ReplaceCredentialInternal ( User user, Credential credential ) : System.Threading.Tasks.Task | ||
UpdateFailedLoginAttempt ( User user ) : System.Threading.Tasks.Task | ||
UpdateSuccessfulLoginAttempt ( User user ) : System.Threading.Tasks.Task |
public AddCredential ( User user, Credential credential ) : System.Threading.Tasks.Task | ||
user | User | |
credential | Credential | |
return | System.Threading.Tasks.Task |
public Authenticate ( Credential credential ) : Task |
||
credential | Credential | |
return | Task |
public Authenticate ( string userNameOrEmail, string password ) : Task |
||
userNameOrEmail | string | |
password | string | |
return | Task |
public AuthenticateExternalLogin ( IOwinContext context ) : Task |
||
context | IOwinContext | |
return | Task |
public AuthenticationService ( IEntitiesContext entities, IAppConfiguration config, IDiagnosticsService diagnostics, NuGetGallery.Auditing.AuditingService auditing, IEnumerable |
||
entities | IEntitiesContext | |
config | IAppConfiguration | |
diagnostics | IDiagnosticsService | |
auditing | NuGetGallery.Auditing.AuditingService | |
providers | IEnumerable |
|
credentialBuilder | ICredentialBuilder | |
credentialValidator | ICredentialValidator | |
dateTimeProvider | IDateTimeProvider | |
return | System |
public Challenge ( string providerName, string redirectUrl ) : System.Web.Mvc.ActionResult | ||
providerName | string | |
redirectUrl | string | |
return | System.Web.Mvc.ActionResult |
public ChangePassword ( User user, string oldPassword, string newPassword, bool resetApiKey ) : Task |
||
user | User | |
oldPassword | string | |
newPassword | string | |
resetApiKey | bool | |
return | Task |
public static CreateIdentity ( User user, string authenticationType ) : |
||
user | User | |
authenticationType | string | |
return |
public CreateSessionAsync ( IOwinContext owinContext, NuGetGallery.Authentication.AuthenticatedUser user ) : System.Threading.Tasks.Task | ||
owinContext | IOwinContext | |
user | NuGetGallery.Authentication.AuthenticatedUser | |
return | System.Threading.Tasks.Task |
public DescribeCredential ( Credential credential ) : CredentialViewModel | ||
credential | Credential | |
return | CredentialViewModel |
public GeneratePasswordResetToken ( User user, int expirationInMinutes ) : System.Threading.Tasks.Task | ||
user | User | |
expirationInMinutes | int | |
return | System.Threading.Tasks.Task |
public GeneratePasswordResetToken ( string usernameOrEmail, int expirationInMinutes ) : Task |
||
usernameOrEmail | string | |
expirationInMinutes | int | |
return | Task |
public ReadExternalLoginCredential ( IOwinContext context ) : Task |
||
context | IOwinContext | |
return | Task |
public Register ( string username, string emailAddress, Credential credential ) : Task |
||
username | string | |
emailAddress | string | |
credential | Credential | |
return | Task |
public RemoveCredential ( User user, Credential cred ) : System.Threading.Tasks.Task | ||
user | User | |
cred | Credential | |
return | System.Threading.Tasks.Task |
public ReplaceCredential ( User user, Credential credential ) : System.Threading.Tasks.Task | ||
user | User | |
credential | Credential | |
return | System.Threading.Tasks.Task |
public ReplaceCredential ( string username, Credential credential ) : System.Threading.Tasks.Task | ||
username | string | |
credential | Credential | |
return | System.Threading.Tasks.Task |
public ResetPasswordWithToken ( string username, string token, string newPassword ) : Task |
||
username | string | |
token | string | |
newPassword | string | |
return | Task |
public ValidatePasswordCredential ( IEnumerable |
||
creds | IEnumerable |
|
password | string | |
matched | Credential | |
return | bool |