Question

Unidentified Client

  • 6 October 2020
  • 1 reply
  • 218 views

Hi all, 

 

I’m trying to authenticate to another API (Encompass by Ellie Mae) 

 

They have github repos here: https://github.com/EllieMae/developerconnect-dotnet-bindings/

 

Specifically I’m trying to make a call to get an access_token

 

If I make just the simple request in python:

import requests

data = {
'grant_type': 'password',
'username': '<username>',
'password': '<password>'
}

response = requests.post('https://api.elliemae.com/oauth2/v1/token', data=data, auth=('<api_client_id>', '<api_client_secret>'))

It doesn’t work - comes back with unidentified client. 

I’ve tried everything - can’t seem to get the access token through Zapier - which is making it impossible to integrate. 


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +9

It looks like they are using a resource owner password flow, which maps best to our “Session” authentication type.  You’ll gather credentials from the user, then request a token using the credentials, then use the token on each subsequent request.  When the token expires we’ll call that token exchange request again, and retry the request with the new token.  

 

UI: https://platform.zapier.com/docs/session

CLI: https://zapier.github.io/zapier-platform/#session

 

If you’re having trouble getting a token from the API, I’d suggest reaching out to the API provider.  Their docs assume you’re using their SDK, from what I saw in a quick skim, so you’d need to dig in to confirm exactly what they are sending over the wire.