cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
To help support our community and customers during the outbreak of Coronavirus (COVID-19), LogMeIn is providing free Emergency Remote Work Kits for Health Care Providers, Educational Institutions, Municipalities, Non-Profit organizations, and current LogMeIn customers. For more information please visit https://www.gotomeeting.com/work-remote
Highlighted
New Contributor

Problem with direct login API

We are using the Java API to do direct login. The code works fine for one of the accounts/OAuth clients but fails for two others.

 

String userName = "...";
String userPassword = "...";
String consumerKey = "...";
String consumerSecret = "...";

OAuth2Api authApi = new OAuth2Api(consumerKey, consumerSecret);
TokenResponse response = authApi.directLogin(userName, userPassword);

 The same happens when I use the corresponding cURL request.

 

curl -X POST -H "Authorization:Basic ..." \
-H "Accept:application/json" \
-H "Content-Type: application/x-www-form-urlencoded" \
"https://api.getgo.com/oauth/v2/token" \
-d 'grant_type=password&username=...&password=...&client_id=...'

This is the error message:

 

{
"error":"invalid_client",
"error_description":"Client authentication failed."
}

 

The two accounts that don't work were created this week. The one that works was created many months ago. 

 

Is there something we need to do to the accounts to enable direct login?

 

 

 

 

2 REPLIES 2
Highlighted
LogMeIn Contributor

Re: Problem with direct login API

@count-doku  The only changes made this year are the priority for V2 APIs, and retirement of V1.  If you need to file a support request you may do so using this template:   https://developer.goto.com/support 

Highlighted
New Contributor

Re: Problem with direct login API

Thanks. I already sent emails to support a week ago. No response.