Please go to Bitbucket page to Manage Account https://bitbucket.org/account/ , click on Integrated Applications, then Add Consumer, and in the line 22 set the client_id with Key and client_secret with Secret. The URL must be http://erp.leaf.com.my/webmail/modules/OAuthIntegratorWebclient/Classes/OAuthClient/login_with_bitbucket.php