Class OAuthHelper
- Namespace
- Dynamicweb.DataIntegration.EndpointManagement
- Assembly
- Dynamicweb.DataIntegration.dll
OAuth 2.0 Helper
public class OAuthHelper
- Inheritance
-
OAuthHelper
- Inherited Members
Methods
ClearCache(EndpointAuthentication)
public static void ClearCache(EndpointAuthentication endpointAuthentication)
Parameters
endpointAuthentication
EndpointAuthentication
GetAuthorizationRequestUrl(EndpointAuthentication)
Gets Authorization Request Url
public static string GetAuthorizationRequestUrl(EndpointAuthentication endpointAuthentication)
Parameters
endpointAuthentication
EndpointAuthenticationendpoint Authentication
Returns
GetAuthorizationRequestUrl(EndpointAuthentication, string)
Gets Authorization Request Url
public static string GetAuthorizationRequestUrl(EndpointAuthentication endpointAuthentication, string redirectUrl)
Parameters
endpointAuthentication
EndpointAuthenticationendpoint Authentication
redirectUrl
string
Returns
GetS2SToken(EndpointAuthentication, Endpoint)
Gets token
public static string GetS2SToken(EndpointAuthentication endpointAuthentication, Endpoint endpoint)
Parameters
endpointAuthentication
EndpointAuthenticationendpoint Authentication
endpoint
Endpoint
Returns
GetS2SToken(EndpointAuthentication, Endpoint, out Exception)
Gets token
public static string GetS2SToken(EndpointAuthentication endpointAuthentication, Endpoint endpoint, out Exception exception)
Parameters
endpointAuthentication
EndpointAuthenticationendpoint Authentication
endpoint
Endpointexception
Exception
Returns
GetSecretExpirationDate(EndpointAuthentication, out Exception)
public static DateTime? GetSecretExpirationDate(EndpointAuthentication endpointAuthentication, out Exception error)
Parameters
endpointAuthentication
EndpointAuthenticationerror
Exception
Returns
GetToken(Endpoint, EndpointAuthentication)
public static string GetToken(Endpoint endpoint, EndpointAuthentication endpointAuthentication)
Parameters
endpoint
EndpointendpointAuthentication
EndpointAuthentication
Returns
GetToken(Endpoint, EndpointAuthentication, out Exception)
public static string GetToken(Endpoint endpoint, EndpointAuthentication endpointAuthentication, out Exception error)
Parameters
endpoint
EndpointendpointAuthentication
EndpointAuthenticationerror
Exception
Returns
GetToken(EndpointAuthentication)
Gets token
public static string GetToken(EndpointAuthentication endpointAuthentication)
Parameters
endpointAuthentication
EndpointAuthenticationendpoint Authentication
Returns
GetToken(EndpointAuthentication, out Exception)
Gets token
public static string GetToken(EndpointAuthentication endpointAuthentication, out Exception exception)
Parameters
endpointAuthentication
EndpointAuthenticationendpoint Authentication
exception
Exception
Returns
GetTokenSilent(EndpointAuthentication)
Gets Token Silently
public static string GetTokenSilent(EndpointAuthentication endpointAuthentication)
Parameters
endpointAuthentication
EndpointAuthenticationendpointAuthentication
Returns
SetAuthorizationCode(string, string, string, out Exception)
Sets Authorization Code to MSAL and cache Authorization Account
public static bool SetAuthorizationCode(string id, string code, string authenticationId, out Exception exception)
Parameters
id
stringid
code
stringcode
authenticationId
stringauthentication Id
exception
Exceptionout exception