-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Connector: Add additional authentication method that adds token as query string. #200
Labels
Comments
pallavibharadwaj
changed the title
Add additional authentication method that adds token as query string.
Data Connector: Add additional authentication method that adds token as query string.
Jun 24, 2020
4 tasks
pallavibharadwaj
added a commit
to pallavibharadwaj/dataprep
that referenced
this issue
Jun 28, 2020
The API key gets added as a query string parameter instead of an auth header Resolves sfu-db#200
10 tasks
pallavibharadwaj
added a commit
to pallavibharadwaj/dataprep
that referenced
this issue
Jun 28, 2020
The API key gets added as a query string parameter instead of an auth header Resolves sfu-db#200
pallavibharadwaj
added a commit
to pallavibharadwaj/dataprep
that referenced
this issue
Jul 1, 2020
The API key gets added as a query string parameter instead of an auth header Resolves sfu-db#200
pallavibharadwaj
added a commit
to pallavibharadwaj/dataprep
that referenced
this issue
Jul 4, 2020
The API key gets added as a query string parameter instead of an auth header Resolves sfu-db#200
pallavibharadwaj
added a commit
to pallavibharadwaj/dataprep
that referenced
this issue
Jul 7, 2020
The API key gets added as a query string parameter instead of an auth header Resolves sfu-db#200
kla55
pushed a commit
to kla55/dataprep
that referenced
this issue
Jul 23, 2020
The API key gets added as a query string parameter instead of an auth header Resolves sfu-db#200
devinllu
pushed a commit
to devinllu/dataprep
that referenced
this issue
Nov 9, 2021
The API key gets added as a query string parameter instead of an auth header Resolves sfu-db#200
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Some websites (Ex: YouTube) allow the authentication token to be added as part of the URL (as a query string parameter) and not as an auth header. Currently, we have two types of authorization: Bearer and OAuth2. Bearer adds the user token as an
Authorization
header and not as a query string parameter that is expected.Describe the solution you'd like
When the user provides the auth token while defining the connector object,
dc = Connector(".././DataConnectorConfigs/youtube", _auth={"access_token":<auth_token>})
, a query string parameter calledkey
is to be added to the params request object.'params': {'key': 'AIzaSyC2Z29ow99qyV3kdk0CJYTINYgxG48ArqM'}}
.To achieve this, we add an additional type in the config schema called
TokenParam
along withBearer
andOAuth2
that does this for us in the backend.The text was updated successfully, but these errors were encountered: