strapi-plugin-oidc 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/{index-XREqyWao.js → index-BJPMfkrf.js} +1 -1
- package/dist/admin/{index-BzRgsk9F.js → index-CQSLiYnE.js} +56 -19
- package/dist/admin/{index-bfZQKCve.mjs → index-DEfdDZQV.mjs} +1 -1
- package/dist/admin/{index-D2Fm7gNJ.mjs → index-Dua1LXcu.mjs} +57 -20
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -99,7 +99,7 @@ const index = {
|
|
|
99
99
|
defaultMessage: "Configuration"
|
|
100
100
|
},
|
|
101
101
|
Component: async () => {
|
|
102
|
-
return await Promise.resolve().then(() => require("./index-
|
|
102
|
+
return await Promise.resolve().then(() => require("./index-CQSLiYnE.js"));
|
|
103
103
|
},
|
|
104
104
|
permissions: [{ action: "plugin::strapi-plugin-oidc.read", subject: null }]
|
|
105
105
|
}
|
|
@@ -7,7 +7,7 @@ const react = require("react");
|
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
8
|
const icons = require("@strapi/icons");
|
|
9
9
|
const reactIntl = require("react-intl");
|
|
10
|
-
const index = require("./index-
|
|
10
|
+
const index = require("./index-BJPMfkrf.js");
|
|
11
11
|
const styled = require("styled-components");
|
|
12
12
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
13
13
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
@@ -509,24 +509,61 @@ function HomePage$1() {
|
|
|
509
509
|
}
|
|
510
510
|
)
|
|
511
511
|
] }),
|
|
512
|
-
/* @__PURE__ */ jsxRuntime.
|
|
513
|
-
/* @__PURE__ */ jsxRuntime.
|
|
514
|
-
|
|
515
|
-
/* @__PURE__ */ jsxRuntime.
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
512
|
+
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { background: "neutral0", hasRadius: true, shadow: "filterShadow", padding: 6, children: [
|
|
513
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingBottom: 6, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "beta", tag: "h2", children: formatMessage(getTrad("login.settings.title")) }) }),
|
|
514
|
+
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 4, children: [
|
|
515
|
+
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
|
|
516
|
+
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", gap: 3, wrap: "wrap", children: [
|
|
517
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", style: { minWidth: "280px" }, children: formatMessage(getTrad("enforce.title")) }),
|
|
518
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { minWidth: "160px", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
519
|
+
CustomSwitch,
|
|
520
|
+
{
|
|
521
|
+
checked: state.enforceOIDC,
|
|
522
|
+
onChange: actions.onToggleEnforce,
|
|
523
|
+
disabled: state.useWhitelist && state.users.length === 0,
|
|
524
|
+
label: state.enforceOIDC ? formatMessage(getTrad("enforce.toggle.enabled")) : formatMessage(getTrad("enforce.toggle.disabled"))
|
|
525
|
+
}
|
|
526
|
+
) })
|
|
527
|
+
] }),
|
|
528
|
+
state.enforceOIDC && state.enforceOIDC !== state.initialEnforceOIDC && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { background: "danger100", padding: 3, hasRadius: true, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 3, alignItems: "center", children: [
|
|
529
|
+
/* @__PURE__ */ jsxRuntime.jsx(icons.WarningCircle, { fill: "danger600" }),
|
|
530
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: "danger600", children: formatMessage(getTrad("enforce.warning")) })
|
|
531
|
+
] }) })
|
|
532
|
+
] }),
|
|
533
|
+
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", gap: 3, wrap: "wrap", children: [
|
|
534
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", style: { minWidth: "280px" }, children: formatMessage(getTrad("login.sso.show")) }),
|
|
535
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { minWidth: "160px", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
536
|
+
CustomSwitch,
|
|
537
|
+
{
|
|
538
|
+
checked: state.showSSOButton,
|
|
539
|
+
onChange: actions.onToggleShowSSOButton,
|
|
540
|
+
label: state.showSSOButton ? formatMessage(getTrad("enforce.toggle.enabled")) : formatMessage(getTrad("enforce.toggle.disabled"))
|
|
541
|
+
}
|
|
542
|
+
) })
|
|
543
|
+
] }),
|
|
544
|
+
state.showSSOButton && /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", gap: 3, wrap: "wrap", children: [
|
|
545
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
546
|
+
designSystem.Typography,
|
|
547
|
+
{
|
|
548
|
+
variant: "omega",
|
|
549
|
+
tag: "label",
|
|
550
|
+
htmlFor: "sso-button-text",
|
|
551
|
+
style: { minWidth: "280px" },
|
|
552
|
+
children: formatMessage(getTrad("login.sso.button.text.label"))
|
|
553
|
+
}
|
|
554
|
+
),
|
|
555
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { style: { flex: 1, minWidth: "160px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
556
|
+
designSystem.TextInput,
|
|
557
|
+
{
|
|
558
|
+
id: "sso-button-text",
|
|
559
|
+
"aria-label": formatMessage(getTrad("login.sso.button.text.label")),
|
|
560
|
+
value: state.ssoButtonText,
|
|
561
|
+
onChange: actions.onChangeSSOButtonText
|
|
562
|
+
}
|
|
563
|
+
) })
|
|
564
|
+
] })
|
|
565
|
+
] })
|
|
566
|
+
] }),
|
|
530
567
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "flex-end", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
531
568
|
designSystem.Button,
|
|
532
569
|
{
|
|
@@ -98,7 +98,7 @@ const index = {
|
|
|
98
98
|
defaultMessage: "Configuration"
|
|
99
99
|
},
|
|
100
100
|
Component: async () => {
|
|
101
|
-
return await import("./index-
|
|
101
|
+
return await import("./index-Dua1LXcu.mjs");
|
|
102
102
|
},
|
|
103
103
|
permissions: [{ action: "plugin::strapi-plugin-oidc.read", subject: null }]
|
|
104
104
|
}
|
|
@@ -2,10 +2,10 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Routes, Route } from "react-router-dom";
|
|
3
3
|
import { useNotification, useFetchClient, Page, Layouts } from "@strapi/strapi/admin";
|
|
4
4
|
import { useState, useCallback, useEffect, memo } from "react";
|
|
5
|
-
import { Typography, Flex, Box, MultiSelect, MultiSelectOption, Field, Button, Divider, Thead, Tr, Th, Tbody, Td, Dialog, IconButton, Pagination, PreviousLink, PageLink, NextLink, Table, Alert } from "@strapi/design-system";
|
|
5
|
+
import { Typography, Flex, Box, MultiSelect, MultiSelectOption, Field, Button, Divider, Thead, Tr, Th, Tbody, Td, Dialog, IconButton, Pagination, PreviousLink, PageLink, NextLink, Table, Alert, TextInput } from "@strapi/design-system";
|
|
6
6
|
import { Plus, Trash, WarningCircle } from "@strapi/icons";
|
|
7
7
|
import { useIntl } from "react-intl";
|
|
8
|
-
import { e as en, p as pluginId } from "./index-
|
|
8
|
+
import { e as en, p as pluginId } from "./index-DEfdDZQV.mjs";
|
|
9
9
|
import styled from "styled-components";
|
|
10
10
|
function getTrad(id) {
|
|
11
11
|
const pluginIdWithId = `${pluginId}.${id}`;
|
|
@@ -505,24 +505,61 @@ function HomePage() {
|
|
|
505
505
|
}
|
|
506
506
|
)
|
|
507
507
|
] }),
|
|
508
|
-
/* @__PURE__ */
|
|
509
|
-
/* @__PURE__ */
|
|
510
|
-
|
|
511
|
-
/* @__PURE__ */
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
508
|
+
/* @__PURE__ */ jsxs(Box, { background: "neutral0", hasRadius: true, shadow: "filterShadow", padding: 6, children: [
|
|
509
|
+
/* @__PURE__ */ jsx(Box, { paddingBottom: 6, children: /* @__PURE__ */ jsx(Typography, { variant: "beta", tag: "h2", children: formatMessage(getTrad("login.settings.title")) }) }),
|
|
510
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 4, children: [
|
|
511
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
|
|
512
|
+
/* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: 3, wrap: "wrap", children: [
|
|
513
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", style: { minWidth: "280px" }, children: formatMessage(getTrad("enforce.title")) }),
|
|
514
|
+
/* @__PURE__ */ jsx(Box, { minWidth: "160px", children: /* @__PURE__ */ jsx(
|
|
515
|
+
CustomSwitch,
|
|
516
|
+
{
|
|
517
|
+
checked: state.enforceOIDC,
|
|
518
|
+
onChange: actions.onToggleEnforce,
|
|
519
|
+
disabled: state.useWhitelist && state.users.length === 0,
|
|
520
|
+
label: state.enforceOIDC ? formatMessage(getTrad("enforce.toggle.enabled")) : formatMessage(getTrad("enforce.toggle.disabled"))
|
|
521
|
+
}
|
|
522
|
+
) })
|
|
523
|
+
] }),
|
|
524
|
+
state.enforceOIDC && state.enforceOIDC !== state.initialEnforceOIDC && /* @__PURE__ */ jsx(Box, { background: "danger100", padding: 3, hasRadius: true, children: /* @__PURE__ */ jsxs(Flex, { gap: 3, alignItems: "center", children: [
|
|
525
|
+
/* @__PURE__ */ jsx(WarningCircle, { fill: "danger600" }),
|
|
526
|
+
/* @__PURE__ */ jsx(Typography, { textColor: "danger600", children: formatMessage(getTrad("enforce.warning")) })
|
|
527
|
+
] }) })
|
|
528
|
+
] }),
|
|
529
|
+
/* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: 3, wrap: "wrap", children: [
|
|
530
|
+
/* @__PURE__ */ jsx(Typography, { variant: "omega", style: { minWidth: "280px" }, children: formatMessage(getTrad("login.sso.show")) }),
|
|
531
|
+
/* @__PURE__ */ jsx(Box, { minWidth: "160px", children: /* @__PURE__ */ jsx(
|
|
532
|
+
CustomSwitch,
|
|
533
|
+
{
|
|
534
|
+
checked: state.showSSOButton,
|
|
535
|
+
onChange: actions.onToggleShowSSOButton,
|
|
536
|
+
label: state.showSSOButton ? formatMessage(getTrad("enforce.toggle.enabled")) : formatMessage(getTrad("enforce.toggle.disabled"))
|
|
537
|
+
}
|
|
538
|
+
) })
|
|
539
|
+
] }),
|
|
540
|
+
state.showSSOButton && /* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: 3, wrap: "wrap", children: [
|
|
541
|
+
/* @__PURE__ */ jsx(
|
|
542
|
+
Typography,
|
|
543
|
+
{
|
|
544
|
+
variant: "omega",
|
|
545
|
+
tag: "label",
|
|
546
|
+
htmlFor: "sso-button-text",
|
|
547
|
+
style: { minWidth: "280px" },
|
|
548
|
+
children: formatMessage(getTrad("login.sso.button.text.label"))
|
|
549
|
+
}
|
|
550
|
+
),
|
|
551
|
+
/* @__PURE__ */ jsx(Box, { style: { flex: 1, minWidth: "160px" }, children: /* @__PURE__ */ jsx(
|
|
552
|
+
TextInput,
|
|
553
|
+
{
|
|
554
|
+
id: "sso-button-text",
|
|
555
|
+
"aria-label": formatMessage(getTrad("login.sso.button.text.label")),
|
|
556
|
+
value: state.ssoButtonText,
|
|
557
|
+
onChange: actions.onChangeSSOButtonText
|
|
558
|
+
}
|
|
559
|
+
) })
|
|
560
|
+
] })
|
|
561
|
+
] })
|
|
562
|
+
] }),
|
|
526
563
|
/* @__PURE__ */ jsx(Flex, { justifyContent: "flex-end", children: /* @__PURE__ */ jsx(
|
|
527
564
|
Button,
|
|
528
565
|
{
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/package.json
CHANGED