I’m implementing OAuth flow for API with instruction posted here: https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-oauth-authentication/
But for some reason, I constantly getting 500 Internal Server Error when trying to get temporary credentials.
Atlassian has implemented examples for different languages stored on Bitbucket (particular for PHP): https://bitbucket.org/atlassianlabs/atlassian-oauth-examples/src/master/php/src/Atlassian/OAuthWrapper.php
The problem is in the requestTempCredentials method.
The affected endpoint is https:<jira_cloud_url>/plugins/servlet/oauth/request-token
Have anyone faced with that problem?