-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
), | ||
})} | ||
onSubmit={(values, formikHelpers) => { | ||
console.log("HI"); |
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.
nit: extraneous log line
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.
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", |
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 think this would technically be a subdomain? Although not if Egnyte has some standard terminology around this.
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.
kind of - they have things like https://{Egnyte Domain}.egnyte.com/pubapi/
in their docs. So not quite Base Domain, but not subdomain either.
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.
Can just mirror that
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.