Skip to content

Commit

Permalink
fix: (DeclarativeOAuthFlow) - add access_token_params property to m…
Browse files Browse the repository at this point in the history
…atch the actual spec properties (#103)
  • Loading branch information
bazarnov authored Nov 27, 2024
1 parent 3c96f16 commit b47f0ca
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -659,10 +659,9 @@ definitions:
description: |-
OAuth specific blob. Pertains to the fields defined by the connector relating to the OAuth flow.
type: object
additionalProperties: false
additionalProperties: true
required:
- consent_url
- scope
- access_token_url
- extract_output
properties:
Expand Down Expand Up @@ -710,6 +709,20 @@ definitions:
"Authorization": "Basic {base64Encoder:{client_id}:{client_secret}}"
}
}
access_token_params:
type: object
additionalProperties: true
description: |-
The OAuth Specific optional query parameters to inject while exchanging the `auth_code` to `access_token` during `completeOAuthFlow` step.
When this property is provided, the query params are encoded as `Json string` and passed to the outgoing API request.
Examples:
{
"access_token_params": {
"my_query_param": "param_value",
"{client_id_key}": {{client_id_key}}
}
}
extract_output:
type: array
items:
Expand All @@ -726,22 +739,23 @@ definitions:
}
state:
type: object
additionalProperties: true
description: |-
The OAuth Specific object to provide the criteria of how the `state` query param should be constructed,
including length and complexity.
TODO: review and edit this property, once the state generation logic is finilized.
Examples:
{
"state": {
"min_length": 7,
"max_length": 128,
"min_special": 3,
"excluded": ["$", "\\", "."]
"min": 7,
"max": 128,
}
}
additionalProperties: true
properties:
min:
type: integer
max:
type: integer
client_id_key:
type: string
description: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,9 @@ definitions:
description: |-
OAuth specific blob. Pertains to the fields defined by the connector relating to the OAuth flow.
type: object
additionalProperties: false
additionalProperties: true
required:
- consent_url
- scope
- access_token_url
- extract_output
properties:
Expand Down Expand Up @@ -765,6 +764,20 @@ definitions:
"Authorization": "Basic {base64Encoder:{client_id}:{client_secret}}"
}
}
access_token_params:
type: object
additionalProperties: true
description: |-
The OAuth Specific optional query parameters to inject while exchanging the `auth_code` to `access_token` during `completeOAuthFlow` step.
When this property is provided, the query params are encoded as `Json string` and passed to the outgoing API request.
Examples:
{
"access_token_params": {
"my_query_param": "param_value",
"{client_id_key}": {{client_id_key}}
}
}
extract_output:
type: array
items:
Expand All @@ -781,22 +794,23 @@ definitions:
}
state:
type: object
additionalProperties: true
description: |-
The OAuth Specific object to provide the criteria of how the `state` query param should be constructed,
including length and complexity.
TODO: review and edit this property, once the state generation logic is finilized.
Examples:
{
"state": {
"min_length": 7,
"max_length": 128,
"min_special": 3,
"excluded": ["$", "\\", "."]
"min": 7,
"max": 128,
}
}
additionalProperties: true
properties:
min:
type: integer
max:
type: integer
client_id_key:
type: string
description: |-
Expand Down

0 comments on commit b47f0ca

Please sign in to comment.