Skip to content

Commit

Permalink
updated flow
Browse files Browse the repository at this point in the history
  • Loading branch information
bazarnov committed Nov 22, 2021
1 parent cfc871a commit bcbb385
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 10 deletions.
82 changes: 73 additions & 9 deletions airbyte-config/init/src/main/resources/seed/source_specs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1112,25 +1112,89 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-drift:0.2.3"
- dockerImage: "airbyte/source-drift:0.2.4"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/drift"
connectionSpecification:
$schema: "http://json-schema.org/draft-07/schema#"
title: "Drift Spec"
type: "object"
required:
- "access_token"
additionalProperties: false
required: []
additionalProperties: true
properties:
access_token:
type: "string"
description: "Drift Access Token. See the <a href=\"https://docs.airbyte.io/integrations/sources/drift\"\
>docs</a> for more information on how to generate this key."
airbyte_secret: true
credentials:
title: "Authorization Method"
type: "object"
oneOf:
- type: "object"
title: "OAuth2.0"
required:
- "client_id"
- "client_secret"
- "access_token"
- "refresh_token"
properties:
credentials:
type: "string"
const: "oauth2.0"
enum:
- "oauth2.0"
default: "oauth2.0"
order: 0
client_id:
type: "string"
title: "Client ID"
description: "The Client ID of your Drift developer application."
airbyte_secret: true
client_secret:
type: "string"
title: "Client Secret"
description: "The Client Secret of your Drift developer application."
airbyte_secret: true
access_token:
type: "string"
title: "Access Token"
description: "Access Token for making authenticated requests."
airbyte_secret: true
refresh_token:
type: "string"
title: "Refresh Token"
description: "Refresh Token to renew the expired access_token."
default: ""
airbyte_secret: true
- title: "Access Token"
type: "object"
required:
- "access_token"
properties:
credentials:
type: "string"
const: "access_token"
enum:
- "access_token"
default: "access_token"
order: 0
access_token:
type: "string"
title: "Access Token"
description: "Drift Access Token. See the <a href=\"https://docs.airbyte.io/integrations/sources/drift\"\
>docs</a> for more information on how to generate this key."
airbyte_secret: true
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
authSpecification:
auth_type: "oauth2.0"
oauth2Specification:
rootObject:
- "credentials"
- "0"
oauthFlowInitParameters:
- - "client_id"
- - "client_secret"
oauthFlowOutputParameters:
- - "access_token"
- - "refresh_token"
- dockerImage: "airbyte/source-exchange-rates:0.2.5"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/exchangeratesapi"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public DriftOAuthFlow(final ConfigRepository configRepository, final HttpClient
}

@Override
protected String formatConsentUrl(UUID definitionId, String clientId, String redirectUrl) throws IOException {
protected String formatConsentUrl(UUID definitionId, String clientId, String redirectUrl, JsonNode inputOAuthConfiguration) throws IOException {
final URIBuilder builder = new URIBuilder()
.setScheme("https")
.setHost("dev.drift.com")
Expand Down

0 comments on commit bcbb385

Please sign in to comment.