Commit Graph

123 Commits

Author SHA1 Message Date
Deepak Prabhakara c703b9dfea
Terminus json model (#2612)
* WIP

* tweaks

* lint fix

* fixed roles casing

* cleanup
2024-05-13 23:49:44 +01:00
Deepak Prabhakara 5eb106e5c4
Rename saml fed and sso tracer (#2693)
* rename

* more rename

* samlFed -> idFed
2024-05-11 13:35:32 +01:00
Deepak Prabhakara 6bfb89a74e
Renaming routes for Identity Federation (#2618)
* WIP

* updated swagger file

* renamed routes

* renamed test folder

* separate section for Identity Federation

* sso-tracer -> sso-traces

* don't change ACS url for SAML federation

* SAMLFederation -> IdentityFederation

* SAMLFederation -> IdentityFederation

* keep api/federated-saml but move to api/identity-federation

* test old route as well

* fixed test

* fixed test

* retry tests 3 times

* updated deployment

* WIP create SAML Fed app

(cherry picked from commit 3d15b20a2d)

* Add Admin Portal SSO via SAML Fed

* Minor tweaks

* Use fixture and login using federated connection

* Cleanup SAML fed connection after test, disable failing assertion for now

* Remove only

* Use MockSAML endpoint from env

* Cleanup SSO connections mapped to SAML Fed

* OIDC Fed spec

* Try with higher timeout

* Mutate on page load

* Put back assertion

* Remove assertion and mutate for now

* SAML Fed App + 2 SAML Providers

* Take in optional tenant/product for fixture method

* SAML Fed + 2 OIDC providers

* SAML Fed test cases for single provider

* Tweak title

* Replace swr with fetch

* Remove only

* Bump up timeout to 100s

* Add more test cases for OIDC Fed

* Refactor fetch with hooks

* locale tweaks

* Also try with the other provider

* Fixture support SAML add via raw metadata

* Add second SAML connection using raw metadata

* Revert "Add second SAML connection using raw metadata"

* Revert "Fixture support SAML add via raw metadata"

---------

Co-authored-by: ukrocks007 <ukrocks.mehta@gmail.com>
Co-authored-by: Aswin V <vaswin91@gmail.com>
2024-05-10 11:41:23 +01:00
Aswin V fde514123b
Pagination View fixes for DSync User/Group Lists (#2572)
* Handle pagination query params correctly and set response header for pageToken

* Support for pageToken

* Revert tokenmap change for and add comment

* Exclude `log_webhook_events` checkbox while creating

* `pageToken` handling for WebhookLogs

* `pageToken` handling in API route

* Fix unit tests

* Fix test

* Update tokenmap using effect
2024-04-15 11:01:32 +01:00
Deepak Prabhakara 742f9b0676
Cleanup duplicate locale and components (#2493)
* Tweak sdk style import order

* WIP

* Override SDK styles

* Cleanup and pass props to component

* Cleanup setup link related code as it's handled via setup-link instructions

* Cleanup locale

* Fix e2e tests

* Fix selectors in e2e test

* Add select dropdown style override

* Use component from SDK

* Cleanup locale

* Use Edit DSync from SDK

* Remove default webhook props from setup token page

* Ability to set default webhook secret

* Tweak header text

* Revert sdk style import order - app styles should be latest

* Override default SDK focus style

* Update locale

* Use Edit component from SDK

* Allow patching oidcMetadata fields

* Tweak return data format

* Route change on edit success and other fixes

* Fix button styles

* Fix data access from API

* Fix focus styling for error btn

* Sync lock file

* Cleanup unused files

* Set `displayInfo` to false for setup link and fix exclude fields for SAML under setup link

* Allow forceAuthn in setup links

* Only update forceAuthn if its a boolean value coming from body

* Cleanup and hideSave only for setup link

* Update UI SDK

* Cleanup locales

* Fix failing e2e

* cleaned up dups

* cleaned up dups

* cleanup of components

* more cleanup

* cleanup

* locale cleanup

* dup cleanup

* Reuse styles

* Set min value for expiry field to 1

* Validate expiry before using

* Update SDK and set idpMetadata display to true

* cleaned up unused code, added formik as dep

* clean unused locale strings

* cleaned up ErrorMessage component

---------

Co-authored-by: Aswin V <vaswin91@gmail.com>
2024-03-28 13:21:59 +00:00
Aswin V 67f111711a
Use UI SDK (#2464)
* Tweak sdk style import order

* WIP

* Override SDK styles

* Cleanup and pass props to component

* Cleanup setup link related code as it's handled via setup-link instructions

* Cleanup locale

* Fix e2e tests

* Fix selectors in e2e test

* Add select dropdown style override

* Use component from SDK

* Cleanup locale

* Use Edit DSync from SDK

* Remove default webhook props from setup token page

* Ability to set default webhook secret

* Tweak header text

* Revert sdk style import order - app styles should be latest

* Override default SDK focus style

* Update locale

* Use Edit component from SDK

* Allow patching oidcMetadata fields

* Tweak return data format

* Route change on edit success and other fixes

* Fix button styles

* Fix data access from API

* Fix focus styling for error btn

* Sync lock file

* Cleanup unused files

* Set `displayInfo` to false for setup link and fix exclude fields for SAML under setup link

* Allow forceAuthn in setup links

* Only update forceAuthn if its a boolean value coming from body

* Cleanup and hideSave only for setup link

* Update UI SDK

* Cleanup locales

* Fix failing e2e

* Reuse styles

* Set min value for expiry field to 1

* Validate expiry before using

* Update SDK and set idpMetadata display to true

---------

Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2024-03-28 01:05:55 +00:00
Aswin V 04ed6e4707
Fix router push in dsync/sso listing (#2400)
Fix router push
2024-03-07 10:22:48 +00:00
Deepak Prabhakara f816bb21dd text tweak 2024-03-06 20:35:06 +00:00
Aswin V 1188dd6396
Pagination fixes (#2347)
* `offset` -> `pageOffset`, `limit`-> `pageLimit`

* Be backward compatible in API

* Cleanup types and handle pagination qs

* Cleanup unused code

* Import type

* Cleanup and fix lint error

* Align params for sso-tracer

* Move parsing to a common util function

* pageLimit shouldn't be optional

* Cap pageLimit to max value, split the boolean

* Revert typings and assert non null

* Refactor var name

* Use util function to normalize pagination params across getAll and getByIndex

* Normalize offset/limit for dynamo/mongo

* Update query params in `FederatedSAMLApps`

* Cap to max limit if passed limit is 0

* Sync lock file

* Add a 3rd record and supply opts.pageLimit

* Normalize offset/limit for mem/redis

* Save the 3rd record in the store

* Fix getAll tests

* Give precedence to standard params over legacy

* Use util function

* Parse using util function

* Refactor

* Standardise pagination for `api/v1/dsync/events`

* Standardise pagination for api/admin/connections

* Standardise pagination for api/admin/directory-sync

* Standardise pagination for `api/v1/dsync/groups`

* Standardise pagination for `v1/dsync/users`, `v1/dsync/product`

* Standardise pagination in fetchByProduct APIs

* Update swagger for groups

* Fix pagination params definition, add the params for users api

* More swagger updates

* Swagger spec update for dsync events

* Add pagination params to apis fetching by product

* Update qs in internal-ui

* Remove type assertion

* [Swagger WIP] Fix response format for paginated APIs

* Add dsync events to swagger spec

* Fix swagger spec for sso tracer

* Fix swagger spec for federated-saml apps of a product

* Update pageLimit to 50

* Use pageLimit value from internal-ui

* Update UI SDK

* Cleanup local pagination component

* Update swagger version

* Remove unused keys from locale

* Fix tag for trace api spec

* Fix param name for swagger

* Fix swagger tag for trace

* updated package-lock

* updated package-lock

---------

Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2024-03-06 20:14:14 +00:00
Kiran K 06c7d38b37
Hide the connection info from the setup link UI (#2383)
* For dsync

* For sso

* Refactor EditConnection component to hide certain fields in setup view

* Refactor EditConnection

* Refactor directory-sync and sso-connection API handlers

* Fix lint issue

* wip

* Fix updates

* Fix authorization check and error message

* Optimize

* Sync lock files

---------

Co-authored-by: Aswin V <vaswin91@gmail.com>
Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2024-03-06 20:03:50 +00:00
Deepak Prabhakara a473b360ef
New OIDC fed (#2336)
* add WellKnownURLs

* Fix translation keys

* Update dependencies and add IdP Configuration

* Update common.json with new translations

* wip

* Update @boxyhq/internal-ui version to 0.0.5

* add internal ui folder

* Fix imports and build

* Refactor internal-ui package structure

* wip shared UI

* Fix the build

* WIP

* Add new components and hooks for directory sync

* WIP

* lint fix

* updated swr

* WIP

* users

* Refactor shared components and fix API endpoints***

***Update directory user page and add new federated SAML app

* Fix lint

* wip

* Add new files and update existing files

* Refactor DirectoryGroups and DirectoryInfo components

* Update localization strings for directory UI

* Update Google Auth URL description in common.json

* Refactor directory tab and add delete functionality to webhook logs

* IdP selection screen changes

* Delete unused files and update dependencies

* Fix column declaration

* Add internal-ui/dist to .gitignore

* Update page limit and add new dependencies

* wip

* Refactor directory search in user API endpoint

* wip

* Refactor directory retrieval logic in user and group API handlers

* Add API endpoints for retrieving webhook events

* check app's redirectUrl, TODO: save app info into session to read later

* Add query parameters to API URLs in DirectoryGroups

* working saml login via IdP select. TODO: oidc login via IdP select and saml + oidc login with 1 connection

* oidc IdP working with selection

* working oidc fed -> saml flow

* Add Google authorization status badge and handle pagination in FederatedSAMLApps

* Add router prop to AppsList component and update page header titles

* UI changes

* updated peer-deps

* Add new files and export functions

* Remove unused router prop

* Add PencilIcon to FederatedSAMLApps

* updated federated app creation page

* updated federated app edit page

* Refactor FederatedSAMLApps and NewFederatedSAMLApp components

* lint fix

* lint fix

* updated package-lock

* add jose npm to dev dep

* added missing strings

* added missing strings

* locale strings fix

* locale strings cleanup

* tweaks to icon imports

* replaced textarea with list of inputs for Federated Apps redirect url

* update package-lock

* Add prepublish step

* Build and publish npm and internal ui

* Refactor install step

* Run npm install (for local) inside internal ui automatically using prepare

* Remove eslint setup for internal-ui

* updated package-lock

* Add `--legacy-peer-deps` to prevent installing peer dependencies

* Fix the types import path

* wip

* wip

* Fix the types

* Format

* Update package-lock

* Cleanup

* Try adding jose library version 5.2.2

* allow selective subdomain globbing

* removed duplicate jose lib

* updated package-lock

* updated swagger doc

* SAML Federation -> Identity Federation

* fixed locale strings

* turn off autocomplete for tags input

---------

Co-authored-by: Kiran K <mailtokirankk@gmail.com>
Co-authored-by: Aswin V <vaswin91@gmail.com>
2024-03-05 16:57:02 +00:00
Deepak Prabhakara 27a43cb778
Clean/unused (#2373)
* updated deployment

* cleanup unused code

* more cleanup

* revert back to old import of styles
2024-03-02 23:46:56 +00:00
Kiran K a6ef0ddddb
Internal UI : Setup Link & SSO Tracer (#2354)
* add WellKnownURLs

* Fix translation keys

* Update dependencies and add IdP Configuration

* Update common.json with new translations

* wip

* Update @boxyhq/internal-ui version to 0.0.5

* add internal ui folder

* Fix imports and build

* Refactor internal-ui package structure

* wip shared UI

* Fix the build

* Add new components and hooks for directory sync

* lint fix

* updated swr

* users

* Refactor shared components and fix API endpoints***

***Update directory user page and add new federated SAML app

* Fix lint

* wip

* Add new files and update existing files

* Refactor DirectoryGroups and DirectoryInfo components

* Update localization strings for directory UI

* Update Google Auth URL description in common.json

* Refactor directory tab and add delete functionality to webhook logs

* Delete unused files and update dependencies

* Fix column declaration

* Add internal-ui/dist to .gitignore

* Update page limit and add new dependencies

* wip

* Refactor directory search in user API endpoint

* wip

* Refactor directory retrieval logic in user and group API handlers

* Add API endpoints for retrieving webhook events

* Add query parameters to API URLs in DirectoryGroups

* Add Google authorization status badge and handle pagination in FederatedSAMLApps

* Add router prop to AppsList component and update page header titles

* UI changes

* Add new files and export functions

* Remove unused router prop

* Add PencilIcon to FederatedSAMLApps

* Refactor FederatedSAMLApps and NewFederatedSAMLApp components

* lint fix

* add jose npm to dev dep

* added missing strings

* locale strings fix

* locale strings cleanup

* update package-lock

* Add prepublish step

* Build and publish npm and internal ui

* Refactor install step

* Run npm install (for local) inside internal ui automatically using prepare

* Remove eslint setup for internal-ui

* wip

* Add `--legacy-peer-deps` to prevent installing peer dependencies

* wip

* Fix the types import path

* wip

* wip

* Fix the types

* Format

* Update package-lock

* Cleanup

* Try adding jose library version 5.2.2

* Add new dependencies for @next/swc package

* Fix translation keys and import types

* Update SSOTracers component and common.json localization

* COPY internal-ui before npm install

* COPY internal-ui in builder stage

* fixed sort order for jose

* wip

* wip setuplink

* Add delete link

* Add exclusion for node_modules in files.exclude

* Add error handling and additional functionality to SetupLinks component

* Refactor SetupLinks component and add missing translations

* Add missing translations and update setup link messages

* Remove comment

* update localization strings

* Remove unused key

* Update SSOTracerInfo component title

* Refactor ConfirmationModal component button styling

* Update package.json and ConfirmationModal.tsx

* Update dep

* Refactor setup links API and UI to use query parameters for pagination

* Refactor deleteLink API endpoint and SetupLinks component

* Update package.json paths

* Update dep

* Refactor setup link forms and add new fields

* Update dep

* Update import paths and add new setup links tests

* wip

* Refactor CreateDirectory and DirectoryInfo components

* Add new fields to setup link and directory sync APIs

* Cleanup

* Update package-lock

* Fix link regeneration

* updated package-lock

* Fix and add e2e tests

* Update API documentation with new parameters for setup link creation and update

* Revert

* Update postcss.config.js and SSOForm.tsx

---------

Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
Co-authored-by: Aswin V <vaswin91@gmail.com>
2024-03-01 17:00:38 +00:00
Kiran K 952bfe360f
Display the Google dsync auth button on Setup Link (#2361)
* Display the Google auth button

* Delete DirectoryInfo and DirectoryTab components
2024-02-29 11:45:37 +00:00
Deepak Prabhakara bb7b856191
run planetscale test on local mysql db (#2353)
* run planetscale test on local mysql db

* run planetscale test on local mysql db

* run planetscale migration before test, ignore eslint warnings
2024-02-28 00:20:01 +00:00
Kiran K 734de64c4d
Add `@boxyhq/internal-ui` (#2305)
* add WellKnownURLs

* Fix translation keys

* Update dependencies and add IdP Configuration

* Update common.json with new translations

* wip

* Update @boxyhq/internal-ui version to 0.0.5

* add internal ui folder

* Fix imports and build

* Refactor internal-ui package structure

* wip shared UI

* Fix the build

* Add new components and hooks for directory sync

* lint fix

* updated swr

* users

* Refactor shared components and fix API endpoints***

***Update directory user page and add new federated SAML app

* Fix lint

* wip

* Add new files and update existing files

* Refactor DirectoryGroups and DirectoryInfo components

* Update localization strings for directory UI

* Update Google Auth URL description in common.json

* Refactor directory tab and add delete functionality to webhook logs

* Delete unused files and update dependencies

* Fix column declaration

* Add internal-ui/dist to .gitignore

* Update page limit and add new dependencies

* wip

* Refactor directory search in user API endpoint

* wip

* Refactor directory retrieval logic in user and group API handlers

* Add API endpoints for retrieving webhook events

* Add query parameters to API URLs in DirectoryGroups

* Add Google authorization status badge and handle pagination in FederatedSAMLApps

* Add router prop to AppsList component and update page header titles

* UI changes

* Add new files and export functions

* Remove unused router prop

* Add PencilIcon to FederatedSAMLApps

* Refactor FederatedSAMLApps and NewFederatedSAMLApp components

* lint fix

* add jose npm to dev dep

* added missing strings

* locale strings fix

* locale strings cleanup

* update package-lock

* Add prepublish step

* Build and publish npm and internal ui

* Refactor install step

* Run npm install (for local) inside internal ui automatically using prepare

* Remove eslint setup for internal-ui

* Add `--legacy-peer-deps` to prevent installing peer dependencies

* Fix the types import path

* wip

* wip

* Fix the types

* Format

* Update package-lock

* Cleanup

* Try adding jose library version 5.2.2

* COPY internal-ui before npm install

* COPY internal-ui in builder stage

* fixed sort order for jose

---------

Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
Co-authored-by: Aswin V <vaswin91@gmail.com>
2024-02-27 22:12:39 +00:00
Aswin V b54463e45a
Switch to UI SDK for SSO (#2299)
* WIP Connection List SDK component usage

* Cleanup

* Align response data format with v1

* Cleanup and auto route to new connection creation for setup link

* Minor formatting

* Switch to SDK component for DSync list

* Fix query param in API

* Disable pagination for setup link view

* Update SDK

* [e2e test] Locate by label

* Sync lock file

* Disable pagination for settings view also

* cleanup

---------

Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2024-02-22 11:26:47 +05:30
Deepak Prabhakara 2e6fa98888 locale strings cleanup 2024-02-21 18:32:09 +00:00
Deepak Prabhakara 150c049c10 locale strings fix 2024-02-21 18:04:24 +00:00
Aswin V d410fe2b76
Setup link fixes (#2316)
* Add missing success toast

* Remove auto routing

* Add translation

* added TODO

---------

Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2024-02-16 15:12:38 +00:00
Deepak Prabhakara 264b724ad8
Table component (#2288)
* tweaks to align with SaaS app

* tweaks

* tweaked table to avoid overflow of long text (long name still messes the layout)

* wrap around for long words

* aligned SSO Tracer with SaaS app

* aligned SSO Tracer with SaaS app

* added Table component

* moved Traces to shared Table component

* moved FedApps to shared Table component

* moved SetupLinks to shared Table component

* fixed setup links pagination

* format fix

* moved Retraced projects to shared Table component

* fixed check to avoid empty div and span
2024-02-15 11:32:31 +00:00
Deepak Prabhakara 5c79b94906
tweaks to align with SaaS app (#2287)
* tweaks to align with SaaS app

* tweaks

* tweaked table to avoid overflow of long text (long name still messes the layout)

* wrap around for long words

* aligned SSO Tracer with SaaS app

* aligned SSO Tracer with SaaS app

---------

Co-authored-by: Kiran K <kiran@boxyhq.com>
2024-02-12 10:23:12 +05:30
Kiran K 1a9af89110
Add `sortOrder` to sso connection to control the order of connections (#2231)
* Control the order of connections in the IdP selection list

* Remove unused import statement

* Fix the sortOrder

* Type fix

* Fix TS error

* Fix build

* Update API version and add sortOrder parameter

* Update swagger specs

* Update swagger

* Add tests

* Add `sortOrder` to GET spec

* Refactor connection retrieval logic and add sorting option

* Fix connection sorting issue

* Fix connection sorting issue

* Update the validation

* Fix the tests

* Filter out connections that are not enabled

---------

Co-authored-by: Aswin V <vaswin91@gmail.com>
Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2024-02-08 15:14:14 +00:00
Aswin V b81e9218f1
Trace OIDC response path (#2179)
* [typings] OIDC provider clientId/secret is non optional

* try/catch and trace the errors ...

* Fix error message inside `resolveConnection`

* Default for error_description, trace error should be either error or fallback to description

* Attach traceId to OAuth error response

* Add more context to the traces

* [fed-saml] Add relayState to trace context

* Tenant/product can be traced from session.request in case connection is not resolved

* Minor change

* [npm] Rename `saml-tracer` -> `sso-tracer`

* [Admin UI/API] Rename `saml-tracer` -> `sso-tracer`

* [v1 API] Rename `saml-traces` -> `sso-traces` with alias to old path

* Fix assertion type display with fallback to `-`

* Update swagger spec

* Scroll in case text overflows
2024-01-23 22:35:17 +00:00
Aswin V c0bd0b5eb0
Tweak branding logo rendering (#2171)
* Remove width/height and set max-height

* Sync lock file

* Increase max-height for idp select

* Tweak branding_logo_url_alt

* Minor text tweak

* text tweak

---------

Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2024-01-18 21:24:52 +00:00
Kiran K 4a719ee911
Make Setup Link Expiry Time Configurable (#2112)
* Make Setup Link Expiry Time Configurable

* Update setup link expiry variable

* Fixes

* Add tests
2024-01-03 12:30:13 +00:00
Kiran K 70abbc8ee4
Support product branding (EE) (#2110)
* Make entity ID read-only

* Update swagger.json

* Add validation to check if an app with the same tenant and product already exists

* Fix error message for duplicate app creation

* Update API handler to use PATCH method instead of POST

* Add product branding support

* Refactor product controller

* Refactor branding and product fetching logic

* Update setup link branding

* Revert

* Fix ProductConfig interface
2024-01-02 15:00:41 +00:00
Kiran K fde4e59fa6
Add missing translations (#2089)
* Add missing translations

* Add eslint-plugin-i18next plugin

* Add missing translation

* Update translations

* Update ESLint rules and improve UI text

* Update WellKnownURLs locales

* Add server-side translations in SetupLinkIndexPage
2023-12-27 12:21:53 +00:00
Deepak Prabhakara 1525035092
updated daisyui (#2088)
* updated daisyui

* Update color conversion function

* Update color conversion function

---------

Co-authored-by: Kiran K <mailtokirankk@gmail.com>
2023-12-26 12:07:34 +00:00
Aswin V 8189d50cd0
Tweak well known tab structure (#2049)
* IdP tab is now the first one

* IdP-config should be the default selected

* Fix styling for link

* Add OpenID SP route, tweak well known list to include the same
2023-12-13 18:23:37 +00:00
Aswin V 74bdda0bab
Add cards to categorize well known URLS (#2023)
* Add cards to categorize URLS

* Use button, fix styling

* Add SAML Federation tab

* Tweak description
2023-12-10 21:33:38 +00:00
dependabot[bot] 8edd8479d7
Bump @boxyhq/react-ui from 3.3.16 to 3.3.18 (#1939)
* Bump @boxyhq/react-ui from 3.3.16 to 3.3.18

Bumps [@boxyhq/react-ui](https://github.com/boxyhq/ui/tree/HEAD/react) from 3.3.16 to 3.3.18.
- [Release notes](https://github.com/boxyhq/ui/releases)
- [Commits](https://github.com/boxyhq/ui/commits/HEAD/react)

---
updated-dependencies:
- dependency-name: "@boxyhq/react-ui"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix prop and styles

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aswin V <vaswin91@gmail.com>
2023-11-18 21:33:50 +00:00
dependabot[bot] c30adc7591
Bump prettier from 3.0.3 to 3.1.0 (#1923)
* Bump prettier from 3.0.3 to 3.1.0

Bumps [prettier](https://github.com/prettier/prettier) from 3.0.3 to 3.1.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.0.3...3.1.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fixed format

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2023-11-13 13:25:02 +00:00
Deepak Prabhakara f411cb3622 bumped up version, replace react-i18next with next-i18next 2023-10-18 18:44:31 +01:00
Aswin V fbec8c882b
Fix sdk css load (#1768)
* Import main stylesheet from sdk

* Override CSS and turn off header display
2023-10-13 10:47:40 +05:30
Deepak Prabhakara 1177ce1011
Format using prettier and add check-format step to GH actions (#1759)
* prettier format

* added check-format step to github actions
2023-10-11 09:18:03 +01:00
Kiran K 446dde1709
Refactor: Move license check to getServerSideProps for Admin Pages (#1726) 2023-10-06 14:25:19 +05:30
Deepak Prabhakara 7c567bc034
fixed error when saving connection, PATCH requests send a 204. (#1725) 2023-10-06 09:07:27 +01:00
Utkarsh Mehta 330a2dcc70
Terminus - Role based masking support (#1580)
* init

* added default masking as Redact

* dynamic roles for masking
dynamic cue generation
added api to get roles

* fixes

* lint fix
2023-09-11 22:17:57 +01:00
dependabot[bot] 037bbcdea1
Bump @boxyhq/react-ui from 3.3.9 to 3.3.10 (#1577)
* Bump @boxyhq/react-ui from 3.3.9 to 3.3.10

Bumps [@boxyhq/react-ui](https://github.com/boxyhq/ui/tree/HEAD/react) from 3.3.9 to 3.3.10.
- [Release notes](https://github.com/boxyhq/ui/releases)
- [Commits](https://github.com/boxyhq/ui/commits/v3.3.10/react)

---
updated-dependencies:
- dependency-name: "@boxyhq/react-ui"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump @boxyhq/react-ui from 3.3.9 to 3.3.10

Bumps [@boxyhq/react-ui](https://github.com/boxyhq/ui/tree/HEAD/react) from 3.3.9 to 3.3.10.
- [Release notes](https://github.com/boxyhq/ui/releases)
- [Commits](https://github.com/boxyhq/ui/commits/v3.3.10/react)

---
updated-dependencies:
- dependency-name: "@boxyhq/react-ui"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix build error

* Sync lock file

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aswin V <vaswin91@gmail.com>
2023-09-11 15:31:16 +05:30
Kiran K 42cabf0b35
SAML setup UI/UX improvements. (#1457) 2023-09-07 17:56:34 +05:30
Deepak Prabhakara e806c62ff7
updated logs-viewer, turn off logging of the view event (#1514)
* updated logs-viewer, turn off logging of the view event

* updated package-lock with swc
2023-09-03 18:47:45 +01:00
Utkarsh Mehta 3f70923771
Added Support of FPE FF1 & FF3_1 (#1513)
* added fpe to list of encryptions

* added ff1 & ff3
2023-09-03 18:46:01 +01:00
Aswin V 5a813991db
Fix readonly view (#1386)
* Switch `disabled` to `readOnly`

* Add copy to clipboard button for clientSecret

* Position the copy button next to label

* Add show/hide secret button

* Use semantic button to improve a11y

* Sync lock file

* Spread rest props on button instead of icon

* Refactor password input to separate component to fix hook issue

* Sync lock file

* Set oidcClientSecret field to password type
2023-07-31 22:41:03 +05:30
Deepak Prabhakara b04a9600bb
Update Terminus (#1347)
don't need to base64
2023-07-20 01:00:05 +01:00
dependabot[bot] b65c25ff6a
Bump @typescript-eslint/eslint-plugin from 5.61.0 to 6.0.0 (#1311)
* Bump @typescript-eslint/eslint-plugin from 5.61.0 to 6.0.0

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.61.0 to 6.0.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.0.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fixed lint errors

* ignore type error for calledWithMatch args

* disable eslint check

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2023-07-11 13:56:55 +01:00
dependabot[bot] 0531840de3
Bump blockly from 9.3.3 to 10.0.0 (#1274)
* Bump blockly from 9.3.3 to 10.0.0

Bumps [blockly](https://github.com/google/blockly) from 9.3.3 to 10.0.0.
- [Release notes](https://github.com/google/blockly/releases)
- [Changelog](https://github.com/google/blockly/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/google/blockly/compare/blockly-v9.3.3...blockly-v10.0.0)

---
updated-dependencies:
- dependency-name: blockly
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fixed texToDom

* sync package-lock

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2023-07-01 22:47:20 +01:00
dependabot[bot] b1cd91bb66
Bump next from 13.2.4 to 13.4.5 (#1218)
* Bump next from 13.2.4 to 13.4.5

Bumps [next](https://github.com/vercel/next.js) from 13.2.4 to 13.4.5.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v13.2.4...v13.4.5)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Sync lock file

* Sync package lock

* Switch payload from body to queryParams

* Update swagger spec

* Upgrade next.js to latest version

* Sync lock file

* updated nextjs

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aswin V <vaswin91@gmail.com>
Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2023-06-27 10:48:56 +01:00
Kiran K 07a5f8a46d
Google Directory API Integration (#1158)
* Add Google Group API

* Restructure the Group interface

* Rename the methods

* wip

* temp change

* Revert the changes

* Fix the groups from Google

* wip fetch users

* Skip directory check

* Convert to SCIM schema

* Updates to users sync

* Fix the unit test

* Rename folder and merge the files

* add raw to the user payload

* Fix the unit tests

* Optimize the Group sync create ops

* Reorder import

* Remove unused imports

* Add type safety to SCIM Schema

* Fix the users and groups update

* try fixing unit tests

* Fix the file extension

* Delete groups that are not in the directory anymore

* Fix the group update

* Compare and find the delete users

* Add and update group members

* cleanup the test

* Fix the test (temp)

* dont throw error

* Add secondary index if the directory type is `google`

* Rename the file

* wip

* Export functions inline

* Hide the SCIM endpoint and token for non-scim provider

* Update the `dsync` option key to allow multiple providers

* Restructure the folders

* Update folder structure

* Cleanup

* Revert the callback changes

* Fix the type

* Fix the type

* Fix existing unit tests

* add callback

* Fix the internal callback

* Fix the method call

* merge the type files

* add console.info for testing

* Fix the Google OAuth client usage

* Reactor the update method

* Handle no users or group cases

* Refactor the sync method

* Fix the pagination

* Cleanup

* Finish the pagination

* Fix the unit tests

* Fix the lint errors

* Fix the build issues

* Pass directory id to the method

* Pass directoryId while fetching

* apply changes to the UI

* display the Google auth URL

* Fix the type

* add unit tests

* add unit test for syncing users

* add unit tests

* Pass operation to SCIM payload

* unit tests wip 1

* updated

* Test the events deleted

* Test group.user_added events

* Finish the tests

* Revert and cleanup

* update map.js

* Revert

* update the e2e test

* Cleanup

* Revert

* label tweak

* Remove unused import

* Protect the cron job using apiKey

---------

Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2023-06-15 14:31:38 +01:00
Kiran K 731ced5ecb
Correct License Verification for EE Feature Controllers (#1141) 2023-05-15 20:58:03 +05:30