diff options
| author | Patrick Barron <18354464+barronpm@users.noreply.github.com> | 2021-06-24 06:21:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-24 06:21:41 -0400 |
| commit | d3e02e918d5586b0b8c74f1b79a13b76a978defd (patch) | |
| tree | 2dc878e046d2f5f609c2216705131e9863dc848f /Emby.Server.Implementations/Session/SessionManager.cs | |
| parent | ae878fa051e73dd1df90f1fed3ca5f7ad28b7beb (diff) | |
| parent | 397868be95db2f705522cc975ac076e60decbf0f (diff) | |
Merge pull request #166 from crobibero/authdb-qc
Fix QuickConnect interation with AuthenticationDb
Diffstat (limited to 'Emby.Server.Implementations/Session/SessionManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Session/SessionManager.cs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs index 29b545583..40a346e95 100644 --- a/Emby.Server.Implementations/Session/SessionManager.cs +++ b/Emby.Server.Implementations/Session/SessionManager.cs @@ -1432,16 +1432,21 @@ namespace Emby.Server.Implementations.Session /// <summary> /// Authenticates the new session. /// </summary> - /// <param name="request">The request.</param> - /// <returns>Task{SessionInfo}.</returns> + /// <param name="request">The authenticationrequest.</param> + /// <returns>The authentication result.</returns> public Task<AuthenticationResult> AuthenticateNewSession(AuthenticationRequest request) { return AuthenticateNewSessionInternal(request, true); } - public Task<AuthenticationResult> AuthenticateQuickConnect(Guid userId) + /// <summary> + /// Directly authenticates the session without enforcing password. + /// </summary> + /// <param name="request">The authentication request.</param> + /// <returns>The authentication result.</returns> + public Task<AuthenticationResult> AuthenticateDirect(AuthenticationRequest request) { - return AuthenticateNewSessionInternal(new AuthenticationRequest { UserId = userId }, false); + return AuthenticateNewSessionInternal(request, false); } private async Task<AuthenticationResult> AuthenticateNewSessionInternal(AuthenticationRequest request, bool enforcePassword) |
