@@ -663,7 +663,6 @@ definitions:
663
663
required :
664
664
- consent_url
665
665
- access_token_url
666
- - extract_output
667
666
properties :
668
667
consent_url :
669
668
type : string
@@ -673,7 +672,7 @@ definitions:
673
672
674
673
Examples:
675
674
{
676
- "consent_url": "https://domain.host.com/oauth2/authorize?{client_id_key} ={{client_id_key }}&{redirect_uri_key}={urlEncoder:{{redirect_uri_key}}}&{ scope_key}={urlEncoder:{{ scope_key}}}&{ state_key} ={{state_key }}&subdomain={subdomain}"
675
+ "consent_url": "https://domain.host.com/oauth2/authorize?{{ client_id_key }} ={{ client_id_value }}&{{ redirect_uri_key }}={{ {{redirect_uri_value}} | urlEncoder }}&{{ scope_key }}={{ {{ scope_key}} | urlEncoder }}&{{ state_key }} ={{ state_value }}&subdomain={{ subdomain } }"
677
676
}
678
677
scope :
679
678
type : string
@@ -692,7 +691,7 @@ definitions:
692
691
693
692
Examples:
694
693
{
695
- "access_token_url": https://auth.host.com/oauth2/token?{client_id_key} ={{client_id_key }}&{client_secret_key} ={{client_secret_key }}&{auth_code_key} ={{auth_code_key }}&{redirect_uri_key}={urlEncoder:{{ redirect_uri_key}}}
694
+ "access_token_url": " https://auth.host.com/oauth2/token?{{ client_id_key }} ={{ client_id_value }}&{{ client_secret_key }} ={{ client_secret_value }}&{{ auth_code_key }} ={{ auth_code_value }}&{{ redirect_uri_key }}={{ {{ redirect_uri_key}} | urlEncoder }}"
696
695
}
697
696
access_token_headers :
698
697
type : object
@@ -706,7 +705,7 @@ definitions:
706
705
707
706
{
708
707
"access_token_headers": {
709
- "Authorization": "Basic {base64Encoder:{client_id}:{client_secret }}"
708
+ "Authorization": "Basic {{ {{ client_id_value }}:{{ client_secret_value }} | base64Encoder }}"
710
709
}
711
710
}
712
711
access_token_params :
@@ -720,7 +719,7 @@ definitions:
720
719
{
721
720
"access_token_params": {
722
721
"my_query_param": "param_value",
723
- "{client_id_key} ": {{client_id_key}}
722
+ "{{ client_id_key }} ": "{{ client_id_value }}"
724
723
}
725
724
}
726
725
extract_output :
@@ -810,6 +809,15 @@ definitions:
810
809
{
811
810
"redirect_uri_key": "my_custom_redirect_uri_key_name"
812
811
}
812
+ token_expiry_key :
813
+ type : string
814
+ description : |-
815
+ The OAuth Specific optional override to provide the custom key name to something like `expires_at`, if required by data-provider.
816
+
817
+ Examples:
818
+ {
819
+ "token_expiry_key": "expires_at"
820
+ }
813
821
existingJavaType : com.fasterxml.jackson.databind.JsonNode
814
822
complete_oauth_output_specification :
815
823
description : |-
@@ -819,11 +827,23 @@ definitions:
819
827
For each field, a special annotation `path_in_connector_config` can be specified to determine where to merge it,
820
828
821
829
Examples:
830
+ With a `refresh_token` in the `oauth response`:
822
831
823
832
complete_oauth_output_specification={
824
833
refresh_token: {
825
834
type: string,
826
- path_in_connector_config: ['credentials', 'refresh_token']
835
+ path_in_connector_config: ['credentials', 'refresh_token'],
836
+ path_in_oauth_response: ['refresh_token']
837
+ }
838
+ }
839
+
840
+ With a nested `refresh_token` under the `data` object, in the `oauth response`:
841
+
842
+ complete_oauth_output_specification={
843
+ refresh_token: {
844
+ type: string,
845
+ path_in_connector_config: ['credentials', 'refresh_token'],
846
+ path_in_oauth_response: ['data', 'refresh_token']
827
847
}
828
848
}
829
849
type : object
0 commit comments