Skip to main content

Get app authentication link

Forms a link for authorization via the browser

Function GetAppAuthLink(Val Domain, Val ClientID) Export

ParameterCLI optionTypeRequiredDescription
Domain--domainStringCurrent Bitrix URL (like 'portal.bitrix24.com')
ClientID--clientidStringClient ID from app settings

Returns: String - URL for browser transition


1C:Enterprise/OneScript code example
    Domain   = "b24-ar17wx.bitrix24.by";
ClientID = "local.6667fc928a50a9.70414732";

Result = OPI_Bitrix24.GetAppAuthLink(Domain, ClientID);
    oint bitrix24 GetAppAuthLink \
--domain "b24-ar17wx.bitrix24.by" \
--clientid "***"
Result
"https://b24-ar17wx.bitrix24.by/oauth/authorize/?client_id=local.6667fc928a50a9.70414732"