Skip to content

KVSKBAHttpOAuthPassCredentials#

Implements [#2b6ee9f5d5ac4624beeed0c03606b396#KVSCOREModuleSetup ](https://github.com/search?q=Table+%232b6ee9f5d5ac4624beeed0c03606b396%23KVSCOREModuleSetup+repo%3AStefanMaron%2FMSDyn365BC.Code.History&type=Code) .

Procedures#

Initialize(Text, Text, Text, Text, Text, Text, Text, List) :#

[NonDebuggable()]
procedure Initialize(OAuthAuthorityUrl: Text; ClientId: Text; ClientSecret: Text; Username: Text; UserPassword: Text; Audience: Text; OrganizationDnsName: Text; Scopes: List): 

IsAuthenticationRequired() : Boolean#

Summary: Checks if the authentication is required

procedure IsAuthenticationRequired(): Boolean

Returns: Always true

GetAuthorizationHeaders() : Dictionary#

Summary: Gets the authorization headers for the request

procedure GetAuthorizationHeaders(): Dictionary

Returns: The header Authorization with the value of Bearer + Token