web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Issues with Custom Con...
Power Apps
Unanswered

Issues with Custom Connector + OAuth

(0) ShareShare
ReportReport
Posted on by
Having the following error when creating a connection with custom connector configured to use OAuth.
The same credentials have been working fine but suddenly stopped working.
My authentication server does not have any 500 error in logs.

Error text:
The request failed with client error: 'Input parameters are invalid. See details for more information. Details:OAuth2 Authorization Flow failed for service Generic Oauth 2. OAuth 2 sign in 'OAuth2LoginStrategyCore' failed to exchange code for access token. Client ID and secret sent in form body.. Response status code=InternalServerError. Response body: { "statusCode": 500, "message": "Internal server error", "activityId": "b6b23f1a-e9c0-4946-9834-a2cb4e6ffae9" } Client ID and secret sent in Basic authorization header.. Response status code=InternalServerError. Response body: { "statusCode": 500, "message": "Internal server error", "activityId": "f3300244-47b1-465b-ae4b-b84a02468170" } '. The correlation Id is 'd2e7625a-1f8e-4179-bc33-0112dda63a0b'.
Categories:
I have the same question (0)
  • Suggested answer
    SwatiSTW Profile Picture
    741 Super User 2025 Season 2 on at
    The issue you seeing is tricky , please try below points
    • Double-check OAuth2 settings in the Custom Connector (Authorization URL, Token URL, Client ID, Secret, Scope).
    • Ensure the Redirect URI in your identity provider matches PowerApps.
    • Try using Postman to manually get the OAuth2 token to see if it's working outside PowerApps.
    • Check if PowerApps recently changed its OAuth requirements (security updates might affect this).
    • If your OAuth provider allows only one authentication method, choose either Form-Encoded or Basic Auth, not both.
    • Look at PowerApps Custom Connector logs for more details.
    • Verify that your API server isn’t rejecting the request (check server logs).
    • If the issue started suddenly, check if Client Secret expired or was rotated.
    • Some OAuth providers have rate limits—ensure you’re not hitting them.
    • Check Microsoft forums for recent OAuth2-related issues in PowerApps.
    • Try creating a new connection from scratch to rule out corrupted settings.
    • If using Azure AD, check Audit Logs for any errors related to sign-in attempts.
    • If nothing works, temporarily switch to another authentication method (API Key or Username/Password) for testing.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard