Kaynağa Gözat

add buttons for sso config and logs on internal admin page (#14997)

* add translation support to subscription admin page

* pass groupId to internal subscription admin page

needed for the SSO config modal

* display buttons for sso config and logs on internal admin page

uses the SSOConfigurationModal, which needs a `groupId` to
identify the subscription.

* fix frontend tests

* Added SSO config fetch after refactor

---------

Co-authored-by: Miguel Serrano <mserranom@gmail.com>
GitOrigin-RevId: 13bec515dac9c6654869e12e088e0cc15a078ef8
Brian Gough 3 yıl önce
ebeveyn
işleme
afcac7af86

+ 1 - 0
services/web/frontend/extracted-translations.json

@@ -1058,6 +1058,7 @@
   "sso_is_enabled_explanation_1": "",
   "sso_is_enabled_explanation_2": "",
   "sso_link_error": "",
+  "sso_logs": "",
   "start_a_free_trial": "",
   "start_by_adding_your_email": "",
   "start_free_trial": "",

+ 1 - 0
services/web/locales/en.json

@@ -1643,6 +1643,7 @@
   "sso_is_enabled_explanation_1": "Group members will <0>only</0> be able to sign in via SSO",
   "sso_is_enabled_explanation_2": "If there are any problems with the configuration, only you (as the group administrator) will be able to disable SSO.",
   "sso_link_error": "Error linking account",
+  "sso_logs": "SSO Logs",
   "sso_not_linked": "You have not linked your account to __provider__. Please log in to your account another way and link your __provider__ account via your account settings.",
   "sso_user_denied_access": "Cannot log in because __appName__ was not granted access to your __provider__ account. Please try again.",
   "standard": "Standard",

+ 1 - 0
services/web/types/admin/subscription.ts

@@ -8,4 +8,5 @@ export type Subscription = {
   admin_id: string
   groupPlan: boolean
   customAccount: boolean
+  ssoConfig: object
 }