Authentication problem

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
bbarui
1 Post
User

1Posts

0Kudos

0Solutions

Authentication problem

 
Hi,
I am getting following response when I am trying authorize my app  and it is not going through. 
 
image.png
The php code I am using is also pasted below
<?php
$clientID = '{API Key}';
$url = urlencode("https://{mysite}/myob/callback.php");
$ch = curl_init();
$customHeaders = array(
    'Content-Type: application/x-www-form-urlencoded'
);
curl_setopt($ch, CURLOPT_HTTPHEADER, $customHeaders);
curl_setopt($ch, CURLOPT_URL, "https://secure.myob.com/oauth2/Account/Login?client_id=". $clientID  ."redirect_uri=". $url ."&response_type=code&scope=la.global");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$data = curl_exec($ch);
echo $data;
?>
 
Please let me know what I am doing wrong.
 
Thank you
Bhaska Barui
 
 
 
 
 
 
 
 
 
 
 
 
 
1 REPLY 1
Komal_S
MYOB Moderator
8,280 Posts
MYOB Moderator
MYOB Moderator

8,280Posts

741Kudos

1,164Solutions

Re: Authentication problem

Hi @bbarui 

 

Thank you for your post.

 

Can you please clarify the name of the app you are using and whether it is being used on the phone or desktop. Also, does it happen after you have entered the email address and password for login or at further stages of authentication?

 

Once I have this information, I would be able to have a look into this for you. 

Kind regards,
Komal

MYOB Community Support

Online Help| Forum Search| my.MYOB| Download Page

Did my answer help?

Mark it as a SolutionHelpful? Leave a to tell others

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post