Power Apps custom connector OAuth 2.0 refresh url

Casper Rubæk 246 Reputation points
2021-05-08T21:22:12.767+00:00

I have implemented a custom connector for power apps with OAuth 2.0 authentication using the generic OAuth 2.0 provider, but the connection fails after the OAuth bearer token expires after 1 hour and the power app does not refresh the token before that.
I suspect that the token refresh url is incorrect.

Can you provide directions of how to construct the refresh url?
I can't find any official documentation regarding this and Active Directory provider in OAuth authentication in Power apps custom connector does not work, which is why I am using the generic OAuth provider.

For reference the connector looks something like this:

95034-image.png

Please provide this question with appropiate tags, since I cant assign oauth and power apps tags.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,283 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Laude 85,791 Reputation points
    2021-05-08T22:17:52.653+00:00

    Hi @Casper Rubæk ,

    Please note that Power Apps are currently not supported in the Q&A forums, the supported products are listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).

    You may ask the experts in the dedicated Power Apps forum over here:
    https://powerusers.microsoft.com/t5/Power-Apps-Community/ct-p/PowerApps1

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Best regards,
    Leon

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Basha, AbdulJamal 1 Reputation point
    2021-07-30T12:19:58.36+00:00

    Hello @Casper Rubæk

    Follow this steps whatever mention in this below documentation. This will give you refresh token

    https://learn.microsoft.com/en-us/connectors/custom-connectors/connection-parameters

    119396-oauth.png

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.