Benton Turner
09/06/2023, 10:12 PMSlack
Notion
GitHub
Intercom
HubspotExample below. Mind helping resolve? The support email we got back asked to send them all the redirect URLs, but I imagine there is some setting or account issue. We hope to have working oauths for the connectors we use with Airbyte without needing to shoot your support the redirect URLs each time 🙏. Recommended to reach out by the BD / product teams. Account: benton@brillai.co.
Jon Tan (Airbyte)
09/06/2023, 10:22 PMBenton Turner
09/06/2023, 11:00 PMBenton Turner
09/06/2023, 11:01 PMBenton Turner
09/06/2023, 11:05 PMJon Tan (Airbyte)
09/06/2023, 11:26 PMNik Weinmeister
09/07/2023, 12:50 AM<https://app.brillai.co>
?Jon Tan (Airbyte)
09/07/2023, 5:21 PM<https://app.brillai.co/airbyte>
is capable of both receiving a secret ID in the query string and tying that to the user session so you know which connector the secret belongs to, you could theoretically use the same page for all your redirects.Nik Weinmeister
09/07/2023, 6:46 PMNik Weinmeister
09/07/2023, 8:42 PM{
"configuration": {
"sourceType": "hubspot",
"secret_id": "xxx",
"start_date": "2020-01-01T00:00:00Z"
},
"name": "Test Organization - hubspot",
"workspaceId": "ba0aa7d2-71fe-4488-8f78-651336f3155a"
}
Response:
{
"type": "<https://reference.airbyte.com/reference/errors#unprocessable-entity>",
"title": "unprocessable-entity",
"status": 422,
"detail": "The provided configuration does not fulfill the specification. Errors: json schema validation failed when comparing the data to the json schema. \nErrors: $.credentials: is missing but it is required "
}
Jon Tan (Airbyte)
09/07/2023, 8:46 PMinitiateOAuth
same as you have been with your <https://app.brillai.co/airbyte_oauth/slack>
URL as the passed in redirectUrl
.
As far as the Hubspot error, you should not need to pass in the credentials object as your secret should be expanded into the credentials object automatically. Let me take a closer look to see what’s going on there.Nik Weinmeister
09/07/2023, 8:55 PMNik Weinmeister
09/08/2023, 1:22 PM{
"statusCode": 400,
"type": "<https://reference.airbyte.com/reference/errors>",
"detail": "Something went wrong in the connector. logs:'credentials'",
"title": "unexpected-problem",
"status": 400
}
Jon Tan (Airbyte)
09/08/2023, 4:27 PMNik Weinmeister
09/08/2023, 4:28 PMGoogle Analytics
Fri, 8 Sep 2023 13:13:40 GMT
Jon Tan (Airbyte)
09/08/2023, 4:30 PMsecret_id
in the configuration
object in the body, but it should be in a completely separate key in the body. That inconsistency is something we’re hoping to iron out in the near future, but haven’t gotten to yet.Nik Weinmeister
09/08/2023, 4:31 PMNik Weinmeister
09/08/2023, 4:31 PMNik Weinmeister
09/08/2023, 4:35 PMJon Tan (Airbyte)
09/08/2023, 4:35 PMNik Weinmeister
09/08/2023, 4:37 PMNik Weinmeister
09/08/2023, 4:37 PMJon Tan (Airbyte)
09/08/2023, 4:40 PMJon Tan (Airbyte)
09/08/2023, 4:43 PMsecret_id
this whole time, the property name (outside the configuration block) should be secretId
Jon Tan (Airbyte)
09/08/2023, 4:43 PMNik Weinmeister
09/08/2023, 4:43 PMNik Weinmeister
09/08/2023, 4:43 PMJon Tan (Airbyte)
09/08/2023, 4:45 PMNik Weinmeister
09/08/2023, 4:46 PMNik Weinmeister
09/08/2023, 4:46 PMNik Weinmeister
09/08/2023, 4:47 PMJon Tan (Airbyte)
09/08/2023, 4:49 PMcredentials.auth_type
needs to be set to Client
per the connector specification. I do not see a credentials.token
in the connector specification so I’m not really sure where that would be coming from. Can you try adding the auth_type
of Client
and try again?Nik Weinmeister
09/08/2023, 4:51 PMJon Tan (Airbyte)
09/08/2023, 4:53 PMNik Weinmeister
09/08/2023, 4:53 PMNik Weinmeister
09/08/2023, 4:54 PMcredentials.auth_type: must be a constant value OAuth2.0
Jon Tan (Airbyte)
09/08/2023, 4:57 PM{
"configuration": {
"sourceType": "notion",
"start_date": "2020-01-01T00:00:00.000Z",
"credentials": {
"auth_type": "OAuth2.0"
}
},
"name": "Test Organization - notion",
"workspaceId": "ba0aa7d2-71fe-4488-8f78-651336f3155a",
"secretId": "secret_id_here"
}
The auth_type
of Client
was operating under the assumption that we were still talking about google analytics.Nik Weinmeister
09/08/2023, 4:58 PMNik Weinmeister
09/08/2023, 4:59 PMNik Weinmeister
09/08/2023, 4:59 PMNik Weinmeister
09/08/2023, 5:02 PMNik Weinmeister
09/08/2023, 5:02 PMJon Tan (Airbyte)
09/08/2023, 5:07 PMinitiateOAuth
endpoint and retrieving the secret, we want to create a source. I usually go to the open source Airbyte repo containing connectors and look for the source specification for the source I want to create. In this case https://github.com/airbytehq/airbyte/blob/master/airbyte-integrations/connectors/source-notion/source_notion/spec.json.
The important points in the spec are any constants (in this case, we want to use the OAuth2.0 version of the credentials block so we need to add that credentials.auth_type
into our source configuration when we create it). If we look further down in the advanced_auth
key, any properties that appear in either the advanced_auth.complete_oauth_output_specification
or the advanced_auth.complete_oauth_server_output_specification
will be either provided by the secret you obtained via initiateOAuth
OR will be injected by the platform/overriden at the workspace/organization level.
So we can confirm that the only property that needs to be present in the configuration.credentials
block when creating a Notion source via the Airbyte API is the auth_type
key.
tldr; any constants found in the credentials block need to be added in the configuration
when you’re creating a source. I don’t know of any examples off the top of my head where you would need to add something that isn’t a constant, but also isn’t in one of the relevant advanced_auth
sections.Jon Tan (Airbyte)
09/08/2023, 5:09 PMcredentials_title
and the value would be OAuth Credentials
I believe.Nik Weinmeister
09/08/2023, 5:09 PMJon Tan (Airbyte)
09/08/2023, 5:11 PMJon Tan (Airbyte)
09/08/2023, 5:11 PMNik Weinmeister
09/08/2023, 5:12 PMNik Weinmeister
09/08/2023, 5:13 PMJon Tan (Airbyte)
09/08/2023, 5:18 PMNik Weinmeister
09/08/2023, 5:22 PMNik Weinmeister
09/08/2023, 5:24 PMAn unexpected problem has occurred. The issue has been recorded and our team is looking into it.
when trying to create those sourcesNik Weinmeister
09/08/2023, 5:26 PMJon Tan (Airbyte)
09/08/2023, 5:27 PMBenton Turner
09/08/2023, 5:49 PMBenton Turner
09/11/2023, 5:57 PMJon Tan (Airbyte)
09/14/2023, 10:17 PMBenton Turner
09/19/2023, 7:10 PMJon Tan (Airbyte)
09/20/2023, 3:55 PMBenton Turner
09/21/2023, 5:35 PMBenton Turner
09/22/2023, 5:56 PMJon Tan (Airbyte)
09/22/2023, 5:59 PMBenton Turner
09/22/2023, 8:13 PMBenton Turner
10/09/2023, 9:16 PMJon Tan (Airbyte)
10/10/2023, 9:33 PMJon Tan (Airbyte)
10/12/2023, 3:12 PMNik Weinmeister
10/13/2023, 2:21 AMuser_scope=&
Sentry: Getting the generic 500 from the initiate Oauth API request (ex: timestamp Oct. 12, 2023 221732.047 )
Asana: Got an error from the redirect URL in Asana: "invalid_request: The redirect_uri
parameter does not match a valid url for the application."