Hello @Алексей Игоревич , To authorize any OAuth connections to generate valid access tokens for authenticating your credentials. You can use a script that provides consent for each OAuth connection. Here's an example script in GitHub in the LogicAppConnectionAuth project- you can check this as reference.
You use an Azure Active Directory (Azure AD) service principal instead to authorize connections. For Azure CLI, please refer to this.
Please let me know if this help.