We were able to set up a custom connector on the Microsoft Power Platform that utilizes the OAuth 2.0 flow to authenticate with Foundry as a third party app. It works great for connecting to Foundry Ontology object types and action types. The trouble, unfortunately, is that our authorization token is expiring after an hour, and we have to manually re-authorize the application.
It seems that there should be automatic handling of the refresh token when the access token expires. Other connections we have created using this same authentication method do not require us to re-authorize, as the refresh is handled by the backend APIM service.
Is there a scope or configuration setting somewhere on either side I am missing that would make this work properly? Its great in testing, but in production this hour timeout would make it less that useful to our business end users.