mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
using MediaBrowser.Controller.Entities;
 | 
						|
using MediaBrowser.Model.Connect;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Threading.Tasks;
 | 
						|
 | 
						|
namespace MediaBrowser.Controller.Connect
 | 
						|
{
 | 
						|
    public interface IConnectManager
 | 
						|
    {
 | 
						|
        /// <summary>
 | 
						|
        /// Gets the wan API address.
 | 
						|
        /// </summary>
 | 
						|
        /// <value>The wan API address.</value>
 | 
						|
        string WanApiAddress { get; }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Links the user.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="userId">The user identifier.</param>
 | 
						|
        /// <param name="connectUsername">The connect username.</param>
 | 
						|
        /// <returns>Task.</returns>
 | 
						|
        Task<UserLinkResult> LinkUser(string userId, string connectUsername);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Removes the link.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="userId">The user identifier.</param>
 | 
						|
        /// <returns>Task.</returns>
 | 
						|
        Task RemoveConnect(string userId);
 | 
						|
 | 
						|
        User GetUserFromExchangeToken(string token);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Authenticates the specified username.
 | 
						|
        /// </summary>
 | 
						|
        Task<ConnectAuthenticationResult> Authenticate(string username, string password, string passwordMd5);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Determines whether [is authorization token valid] [the specified token].
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="token">The token.</param>
 | 
						|
        /// <returns><c>true</c> if [is authorization token valid] [the specified token]; otherwise, <c>false</c>.</returns>
 | 
						|
        bool IsAuthorizationTokenValid(string token);
 | 
						|
    }
 | 
						|
}
 |