Class UserImpersonationEndpointAuthenticationAddIn
- Assembly
- Dynamicweb.DataIntegration.dll
[AddInDeprecated(false)]
[AddInName("OAuth 2.0 - User Impersonation")]
[AddInLabel("OAuth 2.0 - User Impersonation")]
[AddInDescription("OAuth 2.0 - User Impersonation")]
public class UserImpersonationEndpointAuthenticationAddIn : BaseEndpointAuthenticationAddIn
- Inheritance
-
User
Impersonation Endpoint Authentication Add In
- Inherited Members
Properties
ClientId
[AddInParameter("Application (client) Id")]
[AddInParameterEditor(typeof(TextParameterEditor), "")]
public string ClientId { get; set; }
Property Value
ClientSecret
[SensitiveData]
[AddInParameter("Client Secret")]
[AddInParameterEditor(typeof(TextParameterEditor), "password=true")]
public string ClientSecret { get; set; }
Property Value
OAuthAccessToken
[AddInParameter("Access Token")]
[AddInParameterEditor(typeof(TextParameterEditor), "")]
public string OAuthAccessToken { get; set; }
Property Value
TenantId
[AddInParameter("Directory (tenant) Id")]
[AddInParameterEditor(typeof(TextParameterEditor), "")]
public string TenantId { get; set; }
Property Value
Url
[AddInParameter("URL")]
[AddInParameterEditor(typeof(TextParameterEditor), "infoText=Example: For Microsoft Dynamics 365 Business Central use url: https://api.businesscentral.dynamics.com For Microsoft Dynamics 365 Finance and Operations use url: https://myname.cloudax.dynamics.com For Microsoft Dynamics CRM use url: https://myname.crm4.dynamics.com;")]
public string Url { get; set; }
Property Value
Methods
Delete(EndpointAuthentication)
Parameters
authentication
EndpointAuthentication
GetAuthorizationRequestUrl(EndpointAuthentication, Uri)
Gets Authorization Request Url
public Uri GetAuthorizationRequestUrl(EndpointAuthentication endpointAuthentication, Uri redirectUrl)
Parameters
endpointAuthentication
EndpointAuthentication endpoint Authentication
redirectUrl
Uri
Returns
GetSecretExpirationDate(EndpointAuthentication)
Parameters
authentication
EndpointAuthentication
Returns
GetTokenSilent(EndpointAuthentication)
Parameters
authentication
EndpointAuthentication
Returns
IsOAuthTokenBased()
Returns
IsTokenAvailable(EndpointAuthentication)
Parameters
authentication
EndpointAuthentication
Returns
Log(string, string)
Parameters
Log(string, string, Exception)
Parameters
PrepareClient(Uri, HttpClient, HttpClientHandler, Endpoint)
public override void PrepareClient(Uri uri, HttpClient client, HttpClientHandler clientHandler, Endpoint endpoint)
Parameters
uri
Uriclient
HttpClient clientHandler
HttpClient Handler endpoint
Endpoint
Save(EndpointAuthentication)
Parameters
authentication
EndpointAuthentication
SetAuthorizationCode(string, string, string)
Sets Authorization Code to MSAL and cache Authorization Account