Commit Graph

1 Commits

Author SHA1 Message Date
Aswin V 4ab8138969
Fallback for OIDC discovery (#926)
* Support `metadata` in `OIDCSSORecord`

* Helper to create oidc issuer instance

* Use helper to create `Issuer`

* Sync lock file

* Support `oidcMetadata` in pre-loaded connections

* Augment typings for OIDC SSO Connections

* Use helper and pass metadata

* Update validation to consider metadata

* Support for OIDC metadata

* Test fixes for types and error message

* Fix swagger array type

* Update swagger spec

* Util to transform OIDC metadata JSON

* Fix typings

* Augment validation for oidc metadata fields

* Add `oidcMetadataParse` to admin apis

* Add `oidcMetadataParse` to setup link apis

* Remove previously set discoveryUrl or metadata
if any

* Type updates admin portal

* initialState seeding for `object` type

* Add  and place  at bottom of the form

* Type the catalog list

* use  to set the fields for the object type

* Type updates

* Gaurd against  parentKey value

* Add missing guard to `formatForDisplay`

* Link like button

* Support for fallback field

* Util function to check if value is `{}`

* Fix premature setting of metadata

* Exclude fallback from form display
Activate fallback on switch interaction

* Fix settings view state setting

* Sync lock file

* Tweak error message

* Add e2e for SSO connection add via metadata

* Tweak switch

* Refactor - Parameterize the e2e test

* Cleanup

* text tweaks

* fixed test

* Update comments

* Use `data-testid` instead of button name

* Source `data-testid`s from catalog

* Refactor `hidden` className setting

* Switch from `locator` to `getByTestId`

* Apply hidden className to checkbox input

---------

Co-authored-by: Kiran K <kiran@boxyhq.com>
Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2023-02-24 12:43:58 +05:30