David Anderson
06/08/2023, 3:07 PMJoe Reuter (Airbyte)
06/08/2023, 4:32 PMJoe Reuter (Airbyte)
06/08/2023, 4:33 PMDavid Anderson
06/08/2023, 4:42 PMversion: 0.39.1
type: DeclarativeSource
check:
type: CheckStream
stream_names:
- customers
streams:
- type: DeclarativeStream
name: customers
primary_key: []
schema_loader:
type: InlineSchemaLoader
schema:
$schema: <http://json-schema.org/draft-07/schema#>
additionalProperties: true
properties: {}
type: object
retriever:
type: SimpleRetriever
requester:
type: HttpRequester
url_base: <https://tandym-api.us.canopyservicing.com/>
path: customers
http_method: GET
request_parameters: {}
request_headers: {}
authenticator:
type: OAuthAuthenticator
client_id: '{{ config[''client_id''] }}'
client_secret: '{{ config[''client_secret''] }}'
refresh_request_body: {}
token_refresh_endpoint: <https://tandym-api.us.canopyservicing.com/auth/token>
grant_type: client_credentials
request_body_json: {}
record_selector:
type: RecordSelector
extractor:
type: DpathExtractor
field_path: []
paginator:
type: NoPagination
spec:
connection_specification:
$schema: <http://json-schema.org/draft-07/schema#>
type: object
required:
- client_id
- client_secret
properties:
client_id:
type: string
title: Client ID
airbyte_secret: true
client_secret:
type: string
title: Client secret
airbyte_secret: true
additionalProperties: true
documentation_url: <https://example.org>
type: Spec
David Anderson
06/08/2023, 4:43 PMrefresh_request_body
but didn't have any luck there either.Joe Reuter (Airbyte)
06/09/2023, 9:04 AMJoe Reuter (Airbyte)
06/09/2023, 9:06 AM{
"client_id": "{{client_id}}",
"client_secret": "{{client_secret}}",
"grant_type": "client_credentials"
}
That shouldn't cause any issues, but maybe it's tripping up this API. You can check whether this is the case by adding this additional property to the postman call as well and check whether it still works. I don't think this is the problem thoughDavid Anderson
06/09/2023, 2:47 PMDavid Anderson
06/09/2023, 2:47 PMDavid Anderson
06/09/2023, 2:49 PMgrant_type
to the API request in postman had no negative impactJoe Reuter (Airbyte)
06/09/2023, 3:07 PMJoe Reuter (Airbyte)
06/09/2023, 3:07 PMJoe Reuter (Airbyte)
06/09/2023, 3:10 PMoauth/token
) https://docs.canopyservicing.com/doc/latest#authentication-o-auth2Joe Reuter (Airbyte)
06/09/2023, 3:11 PMUser-Agent
and give it a value like airbyte-connector
or so:Joe Reuter (Airbyte)
06/09/2023, 3:12 PMDavid Anderson
06/09/2023, 7:14 PMDavid Anderson
06/09/2023, 7:19 PMUser-Agent
, but in Postman the auth request fails when I don't include Content-Type
. i know how to add request headers to the stream itself, but how do i add a request header to the oauth call?
their public facing docs are hilariously bad, that oauth endpoint that you saw doesn't point to anything šDavid Anderson
06/09/2023, 7:21 PMJoe Reuter (Airbyte)
06/09/2023, 8:07 PMAlexandre Girard (Airbyte)
06/09/2023, 8:24 PMAlexandre Girard (Airbyte)
06/09/2023, 8:24 PMKoen Verburg
06/12/2023, 9:11 AMDavid Anderson
06/15/2023, 1:25 PMcontent-type
to the header and typing it as json did indeed fix this issue. thanks!Koen Verburg
06/15/2023, 1:53 PMDavid Anderson
06/15/2023, 2:34 PMKoen Verburg
06/15/2023, 3:29 PM