Class AccessGateway
Inheritance
AccessGateway
Assembly: SoDataBase.dll
Syntax
public static class AccessGateway : Object
Methods
DecryptTokens(ref String, ref String, String)
Declaration
public static bool DecryptTokens(ref string accessToken, ref string refreshToken, string provider)
Parameters
Returns
EncryptAndSaveServiceAuthRow(ServiceAuthRow)
Declaration
public static ServiceAuthRow EncryptAndSaveServiceAuthRow(ServiceAuthRow row)
Parameters
Returns
GenerateKey(Int32)
Declaration
public static string GenerateKey(int length = 64)
Parameters
Type |
Name |
Description |
Int32 |
length |
|
Returns
GetAccessGatewayAccessToken()
Declaration
public static string GetAccessGatewayAccessToken()
Returns
GetAndDecryptServiceAuthRowFromId(Int32)
Declaration
public static ServiceAuthRow GetAndDecryptServiceAuthRowFromId(int serviceAuthId)
Parameters
Type |
Name |
Description |
Int32 |
serviceAuthId |
|
Returns
GetTokensFromDb(String)
Declaration
public static AccessGateway.TokenManagementInfo GetTokensFromDb(string key)
Parameters
Type |
Name |
Description |
String |
key |
|
Returns
IsUriRegistered(String)
Declaration
public static bool IsUriRegistered(string uri)
Parameters
Type |
Name |
Description |
String |
uri |
|
Returns
RefreshTokens(ref String, ref String, String)
Declaration
public static bool RefreshTokens(ref string accessToken, ref string refreshToken, string provider)
Parameters
Returns
RegisterNewUri(String)
Declaration
public static void RegisterNewUri(string uri)
Parameters
Type |
Name |
Description |
String |
uri |
|
ResolvePassword(String, Boolean)
Declaration
public static string ResolvePassword(string password, bool forceRenew = false)
Parameters
Returns
SaveRegisteredRedirectUri(String)
Declaration
public static void SaveRegisteredRedirectUri(string uri)
Parameters
Type |
Name |
Description |
String |
uri |
|
SaveTokensToDb(AccessGateway.TokenManagementInfo, String)
Declaration
public static string SaveTokensToDb(AccessGateway.TokenManagementInfo tokenInfo, string key = "")
Parameters
Returns