Re: unable to authenticate via rest.

Anonymous
Not applicable

unable to authenticate via rest.

Hello,

I'm having some trouble authenticated via rest.

1.  I followed the instructions here to create a service or api account http://developers.marketo.com/documentation/rest/custom-service/

2.  I then use the identity rest end point along with the grant_type of client_credentials, my client_id and client_secret.  The credentials being found come from the view details link on the account created in step 1.

3.  I then execute a GET with those parameters, but what I'm getting back is HTML(rather than JSON).  The content also appears to be a login page.

I checked around quite a bit and could not find anyone else with a similar issue?

thoughts?

david

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: unable to authenticate via rest.

You're going to need to post the actual request response.  If you're getting HTML that's probably because you're getting redirected to an error page (i.e. 404) because of a typo in the endpoint URL.

Anonymous
Not applicable

Re: unable to authenticate via rest.

Thanks for responding so quick.  It's actually not returning a 404, rather it's a 200.  What's more is that I get the same response if I just do a get to the actual identity url.

Here's what my url looks like.  Probably not an issue to put the full URL in, it's a test region with no data at present.

https://453-RGS-127.mktoapi.com/identity/oauth/token?grant_type=client_credentials&client_id=9139a5c...

Thanks

SanfordWhiteman
Level 10 - Community Moderator

Re: unable to authenticate via rest.

Isn't your identity URL https://453-RGS-127.mktorest.com/identity​ (not mktoapi.​com)?