Hi Maciej,
I found the solution in this topic:
Automation Cloud™ Previews: Azure AD Integration for enterprise and OAuth 2.0 for 3rd party apps - Help / Automation Cloud - UiPath Community Forum