You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.0 KiB
26 lines
1.0 KiB
2 years ago
|
using Biskilog_Accounting.Shared.ClientContractModels;
|
||
|
|
||
|
namespace Biskilog_Accounting.Shared.Interfaces
|
||
|
{
|
||
|
public interface IAuthService
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Prepares and returns the connection string for a client using the specified database id
|
||
|
/// </summary>
|
||
|
/// <param name="a_databaseId">Specified database id to use</param>
|
||
|
/// <returns></returns>
|
||
|
string GetClientConnectionString(int a_databaseId);
|
||
|
/// <summary>
|
||
|
/// Authenticates user or client
|
||
|
/// </summary>
|
||
|
/// <param name="a_username"></param>
|
||
|
/// <param name="a_password"></param>
|
||
|
/// <returns>A tokenized string with relevant information on the authenticated user</returns>
|
||
|
Task<string> AuthenticateClient(string a_username, string a_password);
|
||
|
Contract GetContract(int a_clientId, int a_businessId);
|
||
|
Databasemap GetClientDB(int a_clientId);
|
||
|
Siteaccesspermission GetSiteaccesspermission(int a_clientId);
|
||
|
Clientbusiness GetClientbusiness(int a_clientId);
|
||
|
}
|
||
|
}
|