diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-10-17 00:52:41 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-10-17 00:52:41 -0400 |
| commit | 4f207c43dd912b710345e083adfb6ad45c849b1d (patch) | |
| tree | 56d9e71f10ba8b5f67fee39b846f6ebf2123f6a3 /MediaBrowser.Controller | |
| parent | 6ca771cc7906ae6524f737ae9bf0bc1b916efb40 (diff) | |
update connect methods
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Connect/IConnectManager.cs | 8 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Library/IUserManager.cs | 10 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Session/AuthenticationRequest.cs | 3 |
3 files changed, 20 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Connect/IConnectManager.cs b/MediaBrowser.Controller/Connect/IConnectManager.cs index 8bd0332c0..52175fdd2 100644 --- a/MediaBrowser.Controller/Connect/IConnectManager.cs +++ b/MediaBrowser.Controller/Connect/IConnectManager.cs @@ -47,5 +47,13 @@ namespace MediaBrowser.Controller.Connect /// <param name="id">The identifier.</param> /// <returns>Task.</returns> Task CancelAuthorization(string id); + + /// <summary> + /// Authenticates the specified username. + /// </summary> + /// <param name="username">The username.</param> + /// <param name="passwordMd5">The password MD5.</param> + /// <returns>Task.</returns> + Task Authenticate(string username, string passwordMd5); } } diff --git a/MediaBrowser.Controller/Library/IUserManager.cs b/MediaBrowser.Controller/Library/IUserManager.cs index 39ec2b85d..e9785e2ce 100644 --- a/MediaBrowser.Controller/Library/IUserManager.cs +++ b/MediaBrowser.Controller/Library/IUserManager.cs @@ -131,5 +131,15 @@ namespace MediaBrowser.Controller.Library /// <param name="remoteEndPoint">The remote end point.</param> /// <returns>UserDto.</returns> UserDto GetUserDto(User user, string remoteEndPoint = null); + + /// <summary> + /// Authenticates the user. + /// </summary> + /// <param name="username">The username.</param> + /// <param name="passwordSha1">The password sha1.</param> + /// <param name="passwordMd5">The password MD5.</param> + /// <param name="remoteEndPoint">The remote end point.</param> + /// <returns>Task<System.Boolean>.</returns> + Task<bool> AuthenticateUser(string username, string passwordSha1, string passwordMd5, string remoteEndPoint); } } diff --git a/MediaBrowser.Controller/Session/AuthenticationRequest.cs b/MediaBrowser.Controller/Session/AuthenticationRequest.cs index 38871e814..bfd7f928b 100644 --- a/MediaBrowser.Controller/Session/AuthenticationRequest.cs +++ b/MediaBrowser.Controller/Session/AuthenticationRequest.cs @@ -4,7 +4,8 @@ namespace MediaBrowser.Controller.Session public class AuthenticationRequest { public string Username { get; set; } - public string Password { get; set; } + public string PasswordSha1 { get; set; } + public string PasswordMd5 { get; set; } public string App { get; set; } public string AppVersion { get; set; } public string DeviceId { get; set; } |
