Table of Contents

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 EndpointAuthentication

endpoint Authentication

Returns

string

GetAuthorizationRequestUrl(EndpointAuthentication, string)

Gets Authorization Request Url

public static string GetAuthorizationRequestUrl(EndpointAuthentication endpointAuthentication, string redirectUrl)

Parameters

endpointAuthentication EndpointAuthentication

endpoint Authentication

redirectUrl string

Returns

string

GetS2SToken(EndpointAuthentication, Endpoint)

Gets token

public static string GetS2SToken(EndpointAuthentication endpointAuthentication, Endpoint endpoint)

Parameters

endpointAuthentication EndpointAuthentication

endpoint Authentication

endpoint Endpoint

Returns

string

GetS2SToken(EndpointAuthentication, Endpoint, out Exception)

Gets token

public static string GetS2SToken(EndpointAuthentication endpointAuthentication, Endpoint endpoint, out Exception exception)

Parameters

endpointAuthentication EndpointAuthentication

endpoint Authentication

endpoint Endpoint
exception Exception

Returns

string

GetSecretExpirationDate(EndpointAuthentication, out Exception)

public static DateTime? GetSecretExpirationDate(EndpointAuthentication endpointAuthentication, out Exception error)

Parameters

endpointAuthentication EndpointAuthentication
error Exception

Returns

DateTime?

GetToken(Endpoint, EndpointAuthentication)

public static string GetToken(Endpoint endpoint, EndpointAuthentication endpointAuthentication)

Parameters

endpoint Endpoint
endpointAuthentication EndpointAuthentication

Returns

string

GetToken(Endpoint, EndpointAuthentication, out Exception)

public static string GetToken(Endpoint endpoint, EndpointAuthentication endpointAuthentication, out Exception error)

Parameters

endpoint Endpoint
endpointAuthentication EndpointAuthentication
error Exception

Returns

string

GetToken(EndpointAuthentication)

Gets token

public static string GetToken(EndpointAuthentication endpointAuthentication)

Parameters

endpointAuthentication EndpointAuthentication

endpoint Authentication

Returns

string

GetToken(EndpointAuthentication, out Exception)

Gets token

public static string GetToken(EndpointAuthentication endpointAuthentication, out Exception exception)

Parameters

endpointAuthentication EndpointAuthentication

endpoint Authentication

exception Exception

Returns

string

GetTokenSilent(EndpointAuthentication)

Gets Token Silently

public static string GetTokenSilent(EndpointAuthentication endpointAuthentication)

Parameters

endpointAuthentication EndpointAuthentication

endpointAuthentication

Returns

string

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 string

id

code string

code

authenticationId string

authentication Id

exception Exception

out exception

Returns

bool
To top