mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 01:54:42 +01:00
update connect methods
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user