-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
OAuth Flow: new authSpecifications supporting field references from connector config as dependency #6971
Comments
@sherifnada @ChristopheDuong @jrhizor The list of blocked source-connectors on this:
In order to |
great work @bazarnov , thanks for tracking this down. Do you want to make a proposal/RFC for how this should be supported in the protocol? |
@sherifnada Another option is to pass the necessary fields using the |
I would prefer that we don’t hardcode special rules in the UI/server for each connector. As it is, hardcoding the oauth flow in the server couples the connector lifecycle with the server lifecycle. Because their versions are released totally separately, it’s not a good experience for the user. I propose that we add the following struct to the oauth specification:
In the shopify case this would be something like: ---- spec.json
The UI then sends these parameters alongside the get_consent_url and the complete_oauth_flow calls |
@sherifnada It makes sense. Lets call it oauthFlowInputFields similar to other fields. |
Tell us about the problem you're trying to solve
We need a way to pass the user input config parameters into the OAuthFlow 2.0.
Use-case:
We have Source Shopify with implemented Oauth2.0 connection method.
The
url base
for theconsent
and theaccess token url
should include theShop Name
which user can input on the stage of connection setup (see screenshot, forshop
).So the final link for the consent screen should look like this:
FORMAT:
"https://{shop}.myshopify.com/admin/oauth/access_token"
, where {shop} is the Shop Name of the user's Shop.Describe the solution you’d like
"oauthFlowConfigParameters"
or"oauthFlowCustomParameters"
and pass the config-required fields there, and as the result to the<connector>OauthFlow.java
Authenticate your Shopify account
in this case should be active only after theShop
field is populated.Describe the alternative you’ve considered or used
Other way to pass the config-required parameters into the OAuthFlow.
Additional context
The text was updated successfully, but these errors were encountered: