Show / Hide Table of Contents

Class AccessGateway

Inheritance
Object
AccessGateway
Namespace: SuperOffice.Util
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
Type Name Description
String accessToken
String refreshToken
String provider
Returns
Type Description
Boolean

EncryptAndSaveServiceAuthRow(ServiceAuthRow)

Declaration
public static ServiceAuthRow EncryptAndSaveServiceAuthRow(ServiceAuthRow row)
Parameters
Type Name Description
ServiceAuthRow row
Returns
Type Description
ServiceAuthRow

GenerateKey(Int32)

Declaration
public static string GenerateKey(int length = 64)
Parameters
Type Name Description
Int32 length
Returns
Type Description
String

GetAccessGatewayAccessToken()

Declaration
public static string GetAccessGatewayAccessToken()
Returns
Type Description
String

GetAndDecryptServiceAuthRowFromId(Int32)

Declaration
public static ServiceAuthRow GetAndDecryptServiceAuthRowFromId(int serviceAuthId)
Parameters
Type Name Description
Int32 serviceAuthId
Returns
Type Description
ServiceAuthRow

GetTokensFromDb(String)

Declaration
public static AccessGateway.TokenManagementInfo GetTokensFromDb(string key)
Parameters
Type Name Description
String key
Returns
Type Description
AccessGateway.TokenManagementInfo

IsUriRegistered(String)

Declaration
public static bool IsUriRegistered(string uri)
Parameters
Type Name Description
String uri
Returns
Type Description
Boolean

RefreshTokens(ref String, ref String, String)

Declaration
public static bool RefreshTokens(ref string accessToken, ref string refreshToken, string provider)
Parameters
Type Name Description
String accessToken
String refreshToken
String provider
Returns
Type Description
Boolean

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
Type Name Description
String password
Boolean forceRenew
Returns
Type Description
String

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
Type Name Description
AccessGateway.TokenManagementInfo tokenInfo
String key
Returns
Type Description
String
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top