Skip to content

Commit 8336ba5

Browse files
authored
feat(source-notion): add oauth_connector_input_specification for declarative OAuth (#75577)
1 parent 581d346 commit 8336ba5

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

airbyte-integrations/connectors/source-notion/manifest.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,18 @@ spec:
336336
- auth_type
337337
predicate_value: OAuth2.0
338338
oauth_config_specification:
339+
oauth_connector_input_specification:
340+
consent_url: "https://api.notion.com/v1/oauth/authorize?{{client_id_param}}&{{redirect_uri_param}}&response_type=code&{{state_param}}"
341+
access_token_url: "https://api.notion.com/v1/oauth/token"
342+
access_token_headers:
343+
Authorization: "Basic {{ (client_id_value ~ ':' ~ client_secret_value) | b64encode }}"
344+
Content-Type: "application/x-www-form-urlencoded"
345+
access_token_params:
346+
grant_type: "authorization_code"
347+
code: "{{ auth_code_value }}"
348+
redirect_uri: "{{ redirect_uri_value }}"
349+
extract_output:
350+
- access_token
339351
complete_oauth_output_specification:
340352
type: object
341353
properties:

airbyte-integrations/connectors/source-notion/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: 6e00b415-b02e-4160-bf02-58176a0ae687
13-
dockerImageTag: 4.0.4
13+
dockerImageTag: 4.0.5
1414
dockerRepository: airbyte/source-notion
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/notion
1616
externalDocumentationUrls:

docs/integrations/sources/notion.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ The Blocks stream recursively fetches child blocks up to 30 levels deep. Pages w
122122

123123
| Version | Date | Pull Request | Subject |
124124
|:------------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
125+
| 4.0.5 | 2026-04-01 | [75577](https://github.com/airbytehq/airbyte/pull/75577) | Add `oauth_connector_input_specification` for declarative OAuth |
125126
| 4.0.4 | 2026-03-31 | [75747](https://github.com/airbytehq/airbyte/pull/75747) | Update dependencies |
126127
| 4.0.3 | 2026-03-30 | [75603](https://github.com/airbytehq/airbyte/pull/75603) | Fix 429 status code mapping from RETRY to RATE_LIMITED for improved rate limit handling and observability |
127128
| 4.0.2 | 2026-03-23 | [75290](https://github.com/airbytehq/airbyte/pull/75290) | Update v4.0.0 upgrade deadline to 2026-04-10 |

0 commit comments

Comments
 (0)