-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
add OAuth 2.0 for microsoft_teams source connector #7807
Conversation
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
/test connector=connectors/source-microsoft-teams
|
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.
Sorry, this might be the first connector with input config values from the connector, so the signatures of the base methods might also need to be adapted adequately.
@Override | ||
protected String getAccessTokenUrl() { |
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.
@Override | |
protected String getAccessTokenUrl() { | |
@Override | |
protected String getAccessTokenUrl(final JsonNode inputOAuthConfiguration) { |
This method should be modified in airbyte-oauth/src/main/java/io/airbyte/oauth/BaseOAuth2Flow.java
to also include the config object to the call.
- All Oauth flow implementation that are not depending on a value from connector config should ignore that extra argument
- All Oauth flow implementation that are depending on a value from connector config can access the necessary value from that input config argument
private static final String fieldName = "tenant_id"; | ||
private static String tenantId; |
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.
These should not be present as static variables in the class.
Please adapt the signature of the parent base methods accordingly to pass the input configuration from the connector around in the parent classes.
You might need to change the signature of BaseOAuth2Flow.completeOAuthFlow
to also include the inputConfiguration.
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
airbyte-oauth/src/main/java/io/airbyte/oauth/flows/MicrosoftTeamsOAuthFlow.java
Outdated
Show resolved
Hide resolved
airbyte-oauth/src/main/java/io/airbyte/oauth/flows/MicrosoftTeamsOAuthFlow.java
Outdated
Show resolved
Hide resolved
airbyte-oauth/src/main/java/io/airbyte/oauth/flows/MicrosoftTeamsOAuthFlow.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
/test connector=connectors/source-microsoft-teams
|
/publish connector=connectors/source-microsoft-teams
|
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
* add OAuth 2.0 for microsoft_teams source connector Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Signed-off-by: Sergey Chvalyuk grubberr@gmail.com
How
Recommended reading order
x.java
y.python
Pre-merge Checklist
Expand the relevant checklist and delete the others.
Updating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described here