diff options
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 8bd0332c01..52175fdd2c 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 39ec2b85d1..e9785e2ce8 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 38871e8147..bfd7f928bd 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; } |
