-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
🎉 advanced auth impl #8345
🎉 advanced auth impl #8345
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once I merged master branch and this PR #8482 into your branch, I was able to use the new OAuth flow and create a connection/make a sync with source-harvest:0.1.7
If I am not wrong, this PR handles the new Some values from the connector form need to be forwarded to the OAuth API endpoints (as specified in the protocol by that new field) When calling the consent request API endpoint: airbyte/airbyte-api/src/main/openapi/config.yaml Line 3390 in 65ef929
When calling the complete OAuth API endpoint: airbyte/airbyte-api/src/main/openapi/config.yaml Line 3432 in 65ef929
|
Ammm Actually it should add any additional params ( you could check Do you see some problems with implementation? |
* Add advanced auth impl * Refactor ServiceForm for advanced auth flow * Add auth field filter * Add input params to customSchema * Fix casing and values sent to backend * Fix onDone dependency list * Fix feature set * Refactor feature service to be part of config * Minor codestyle fix * Fix tests
What
Support for new AdvancedAuth flow. This PR changes behaviour only and keeps the same UI for now.
The main change here is that we now try to base our current selected values in
oneOf
and whether we should display button or not on current selected values instead of WidgetState. This allows us to change UI the way we want later and makes it more flexible.Closes #7915
Also to make new advanced auth work, it was required to fix 1 more issue ( Partially fixes #7986 )
How
isAuthFlowSelected
flag that is based on current values and whether oauthFlow is enabled or not toserviceFormContext
ServiceForm/components/Sections
directoryconfig
directory.Recommended reading order
ServiceForm/../FormRoot.tsx
ServiceForm/../useOauthFlowAdapter.ts
services/useConnectorAuth.ts