Skip to content

Commit

Permalink
🪟 🔧 Introduce useAuthentication hook (#17965)
Browse files Browse the repository at this point in the history
* Introduce useAuthentication hook

* Work for both auth mechanism

* Finalize implementation

* Add documentation

* Fix unit tests

* Add unit tests

* Remove getValues call

* Update airbyte-webapp/src/views/Connector/ServiceForm/useAuthentication.tsx

Co-authored-by: Lake Mossman <[email protected]>

* Update airbyte-webapp/src/views/Connector/ServiceForm/useAuthentication.tsx

Co-authored-by: Lake Mossman <[email protected]>

* Update airbyte-webapp/src/views/Connector/ServiceForm/useAuthentication.tsx

Co-authored-by: Lake Mossman <[email protected]>

* Update airbyte-webapp/src/views/Connector/ServiceForm/useAuthentication.tsx

Co-authored-by: Lake Mossman <[email protected]>

* Update airbyte-webapp/src/views/Connector/ServiceForm/useAuthentication.tsx

Co-authored-by: Lake Mossman <[email protected]>

* Update airbyte-webapp/src/views/Connector/ServiceForm/useAuthentication.tsx

Co-authored-by: Lake Mossman <[email protected]>

* Update airbyte-webapp/src/views/Connector/ServiceForm/useAuthentication.test.tsx

Co-authored-by: Lake Mossman <[email protected]>

* Change variable name

Co-authored-by: Lake Mossman <[email protected]>
  • Loading branch information
timroes and lmossman authored Oct 25, 2022
1 parent b050e7b commit 316cdd8
Show file tree
Hide file tree
Showing 15 changed files with 527 additions and 448 deletions.
1 change: 0 additions & 1 deletion airbyte-webapp/src/core/form/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export interface FormGroupItem extends FormItem {
jsonSchema: AirbyteJSONSchema;
properties: FormBlock[];
isLoading?: boolean;
hasOauth?: boolean;
examples?: JSONSchema7Type;
}

Expand Down
1 change: 0 additions & 1 deletion airbyte-webapp/src/core/jsonSchema/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from "./types";
export * from "./schemaToUiWidget";
export * from "./schemaToYup";
export * from "./utils";
1 change: 0 additions & 1 deletion airbyte-webapp/src/core/jsonSchema/schemaToUiWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export const jsonSchemaToUiWidget = (
jsonSchema,
path: path || key,
fieldKey: key,
hasOauth: jsonSchema.is_auth,
properties,
isRequired,
};
Expand Down
1 change: 0 additions & 1 deletion airbyte-webapp/src/core/jsonSchema/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { JSONSchema7, JSONSchema7Definition } from "json-schema";

interface AirbyteJSONSchemaProps {
airbyte_secret?: boolean;
is_auth?: boolean;
airbyte_hidden?: boolean;
multiline?: boolean;
order?: number;
Expand Down
222 changes: 0 additions & 222 deletions airbyte-webapp/src/core/jsonSchema/utils.test.ts

This file was deleted.

98 changes: 0 additions & 98 deletions airbyte-webapp/src/core/jsonSchema/utils.ts

This file was deleted.

Loading

0 comments on commit 316cdd8

Please sign in to comment.