Skip to content
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 support for OAuth connectors that require user input #3571

Merged
merged 5 commits into from
Jan 1, 2025

Conversation

Weves
Copy link
Contributor

@Weves Weves commented Jan 1, 2025

Description

Supports a new paradigm where the user first fills in a form, then goes through the OAuth flow.

Without this, on our Cloud, everyone would be directed to OUR egnyte domain (which they obviously don't have an account on) -> they couldn't set it up.

Screen.Recording.2024-12-31.at.4.24.40.PM.mov

How Has This Been Tested?

Ran Egnyte connector locally.

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)

Copy link

vercel bot commented Jan 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 1, 2025 2:02am

),
})}
onSubmit={(values, formikHelpers) => {
console.log("HI");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: extraneous log line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch—fixed!

@@ -124,6 +125,15 @@ def _process_egnyte_file(


class EgnyteConnector(LoadConnector, PollConnector, OAuthConnector):
class AdditionalOauthKwargs(OAuthConnector.AdditionalOauthKwargs):
egnyte_base_domain: str = Field(
title="Egnyte Base Domain",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this would technically be a subdomain? Although not if Egnyte has some standard terminology around this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kind of - they have things like https://{Egnyte Domain}.egnyte.com/pubapi/ in their docs. So not quite Base Domain, but not subdomain either.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can just mirror that

@Weves Weves enabled auto-merge January 1, 2025 02:00
@Weves Weves disabled auto-merge January 1, 2025 02:03
@Weves Weves merged commit d64464c into main Jan 1, 2025
9 checks passed
@Weves Weves deleted the fix-egnyte-on-cloud branch January 1, 2025 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants