From 4f207c43dd912b710345e083adfb6ad45c849b1d Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 17 Oct 2014 00:52:41 -0400 Subject: update connect methods --- MediaBrowser.Controller/Connect/IConnectManager.cs | 8 ++++++++ MediaBrowser.Controller/Library/IUserManager.cs | 10 ++++++++++ MediaBrowser.Controller/Session/AuthenticationRequest.cs | 3 ++- 3 files changed, 20 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Controller') 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 /// The identifier. /// Task. Task CancelAuthorization(string id); + + /// + /// Authenticates the specified username. + /// + /// The username. + /// The password MD5. + /// Task. + 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 /// The remote end point. /// UserDto. UserDto GetUserDto(User user, string remoteEndPoint = null); + + /// + /// Authenticates the user. + /// + /// The username. + /// The password sha1. + /// The password MD5. + /// The remote end point. + /// Task<System.Boolean>. + Task 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; } -- cgit v1.2.3