-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Implement connector config dependency for OAuth consent URL #7983
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.
LGTM but can you add unit tests for the new functionality?
@@ -75,25 +77,61 @@ public BaseOAuth2Flow(final ConfigRepository configRepository, | |||
} | |||
|
|||
@Override | |||
@Deprecated | |||
public String getSourceConsentUrl(final UUID workspaceId, final UUID sourceDefinitionId, final String redirectUrl) |
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.
do we need to keep this method, or should it be removed in this PR? (not sure what depends on it so just asking, if easy to remove here probably better)
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.
I removed it and added test to make sure the ones that need to be backward compatible can still be used without authConfigSpecification
…sing oauth (#8018) * Instance-wide params should only be injected if a connector will be using oauth * Add test for nested parameters * format code * Cleanup code
…q#7983) * Refactor OAuth consent flow with new API * Use input connector configuration in getConsentURL for OAuth flow * Instance-wide params should only be injected if a connector will be using oauth (airbytehq#8018) * Add test for nested parameters
What
Closes #6971
How
Recommended reading order
airbyte-oauth/src/main/java/io/airbyte/oauth/BaseOAuth2Flow.java
airbyte-oauth/src/main/java/io/airbyte/oauth/BaseOAuthFlow.java
airbyte-server/src/main/java/io/airbyte/server/handlers/OAuthHandler.java
airbyte-oauth/src/test/java/io/airbyte/oauth/flows/BaseOAuthFlowTest.java