-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oauth
: Gated Github support & dual mode (#6314)
* setup working * oauth: fix error_response logging * fix * oauth: add logging when going to provider * flagged test_oauth_setup * oauth: github connector dual-mode * nit * add migration * clean-up * add connectionId to ConnectorType * fix expiry logic * dry out setupConnection for managed and udpate * fix infra oauth * add github-app-private-key to oauth service * add github-app-private-key to oauth service
- Loading branch information
Showing
20 changed files
with
337 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- Migration created on Jul 18, 2024 | ||
CREATE INDEX github_connector_states_installation_id ON github_connector_states ("installationId"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// This function is used to discreminate between a new OAuth connection and an old Nango/Github | ||
// connection. It is used to support dual-use while migrating and should be unused by a connector | ||
// once fully migrated | ||
export function isDualUseOAuthConnectionId(connectionId: string): boolean { | ||
// TODO(spolu): make sure this function is removed once fully migrated. | ||
return connectionId.startsWith("con_"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.