This repository has been archived by the owner on Feb 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from seker212/S/Some-random-fixes
S/some random fixes
- Loading branch information
Showing
4 changed files
with
53 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
namespace ComeX.Lib.Auth | ||
using System.Threading.Tasks; | ||
|
||
namespace ComeX.Lib.Auth | ||
{ | ||
public interface ILoginManager | ||
{ | ||
/// <summary> | ||
/// Tries to login user based on <paramref name="token"/> and assigns a <paramref name="connectionId"/> as a key to the <see cref="IConnectionCache"/> and <see cref="TokenData"/> as a value. | ||
/// Tries to login user based on <paramref name="token"/>. | ||
/// </summary> | ||
/// <param name="connectionId">Connection Id used to send <paramref name="token"/>.</param> | ||
/// <param name="token">Token value.</param> | ||
/// <exception cref="InvalidCredentialsException">Invalid token.</exception> | ||
void Login(string connectionId, string token); | ||
|
||
/// <summary> | ||
/// Logs out a connection. Essentially removes <paramref name="connectionId"/> from <see cref="IConnectionCache"/>. | ||
/// Logs out a connection. | ||
/// </summary> | ||
/// <remarks> | ||
/// If a user uses more than one connection only the given connection will be removed. | ||
/// </remarks> | ||
/// <param name="connectionId">Id of the terminated connection.</param> | ||
void Logout(string connectionId); | ||
Task Logout(string connectionId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters