visch
02/07/2023, 8:48 PMchristoph
02/07/2023, 9:00 PMvisch
02/07/2023, 9:15 PMspec.specerton
for tap-googleds
inputs:
- client_id
- client_secret
- scope
dance_flow:
get: <https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id={inputs.clietn_id}&redirect_uri={specerton.uri}&scope={inputs.scope}&state=autoidm&access_type=offline&prompt=select_account&include_granted_scopes=true>
await_response: true
response_data: url_param("code")
post: <https://www.googleapis.com/oauth2/v4/token?code={dance_flow[0].code}&client_id={inputs.client_id}&client_secret={inputs.client_secrett}&redirect_uri={specerton.uri}&grant_type=authorization_code>
visch
02/07/2023, 9:19 PMchristoph
02/07/2023, 9:22 PMvisch
02/07/2023, 9:24 PMvisch
02/07/2023, 9:24 PMchristoph
02/07/2023, 9:30 PMvisch
02/07/2023, 9:47 PMdance
with another server where we are sending requests back and forth. The end goal for the tap side of all this is to just get that sweet refresh token in most cases.visch
02/09/2023, 1:56 PMchristoph
02/09/2023, 8:27 PMchristoph
02/09/2023, 8:29 PMvisch
02/09/2023, 9:08 PMvisch
02/09/2023, 9:09 PMvisch
02/09/2023, 9:10 PMvisch
02/09/2023, 9:11 PMchristoph
02/09/2023, 9:53 PMvisch
02/09/2023, 9:53 PMvisch
02/09/2023, 9:54 PMchristoph
02/09/2023, 9:55 PMchristoph
02/09/2023, 9:55 PMvisch
02/09/2023, 9:56 PMchristoph
02/09/2023, 10:12 PMaaron_phethean
02/10/2023, 3:42 PMvisch
02/10/2023, 3:48 PMvisch
02/10/2023, 3:49 PMaaron_phethean
02/10/2023, 3:57 PMoauth_credentials.
configs (something the meltano UI once did I think)
- name: oauth_credentials.authorization_url
kind: hidden
label: OAuth identity provider authorization endpoint used create and refresh tokens
value: <https://oauth2.googleapis.com/token>
required: true
- name: oauth_credentials.scope
kind: hidden
label: OAuth scopes we need to request access to
value: <https://www.googleapis.com/auth/drive.readonly>
required: true
- name: oauth_credentials.refresh_proxy_url
kind: hidden
label: Optional - will be called with 'oauth_credentials.refresh_token' to refresh the access token
- name: oauth_credentials.refresh_proxy_url_auth
kind: hidden
label: Optional - Sets Authorization header on 'oauth_credentials.refresh_url' request
- name: oauth_credentials.client_id
kind: hidden
label: Optional - OAuth Client ID used if refresh_proxy_url not supplied
env: GDRIVE_CLIENT_ID
- name: oauth_credentials.client_secret
kind: hidden
label: Optional - OAuth Client Secret used if refresh_proxy_url not supplied
env: GDRIVE_CLIENT_SECRET
- name: oauth_credentials.refresh_token
kind: hidden
label: OAuth Refresh Token
env: GDRIVE_REFRESH_TOKEN
- name: oauth_credentials.access_token
kind: hidden
label: Access Token
env: GDRIVE_ACCESS_TOKEN
required: true
aaron_phethean
02/10/2023, 3:59 PM