Hello together.
I would like to implement the following scenario:
Power Apps[Tenant 1] -> Custom Connector [Tenant 1] -> App Registration [Tenant 2] -> Azure Function [Tenant 2]
The Azure Function is protected via an app registration with OAuth2.
My user from Azure Tenant 1 is also a member of the Tenant 2. But this should not be the problem here.
I have tried to follow the following instructions. This is exactly what I need. However, it did not work.
After some trial and error I did not set the "Azure Active Directory" provider in my Custom Connector as written in the instructions but "Generic OAuth" with the Endpoint URLs from my App Registration . Create a custom connector for Azure AD–protected Azure function apps | Microsoft Learn
Here I have set the following settings:
If I now save the setting, the Forumlar "transforms" itself as if by magic. The identity provider changed itself to "Azure Active Directory"
If I now change the setting again, the RefreshURL is empty as if by magic.
So my app works perfectly.
However, after 60 minutes the connection from the connector fails. Here I have to log in again, because the connection said "Cant Login" with my user. After login again and "repair the connection" everything runs fine.
It seems that I can't set the RefreshURL properly. All in all, the interface here in the OAuth2 setting seems extremely buggy.
Has anyone had a similar scenario and been able to find a solution here?
Does the Custom Connector work for you with AD Login Protected Azure Function Apps?
Thanks a lot for your help ❤️