From 4ef86a08e10bf5b6e56740f4210cace2c920eed9 Mon Sep 17 00:00:00 2001 From: mahhawarn Date: Mon, 4 Aug 2025 00:53:28 +0900 Subject: [PATCH] =?UTF-8?q?feat(deps):=20sSO=20=E3=83=97=E3=83=A9=E3=82=B0?= =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 39 +++++++++++++++++++++++++++++ package.json | 1 + types/generated/contentTypes.d.ts | 41 +++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) diff --git a/package-lock.json b/package-lock.json index 1c5d0c5..e2431c3 100755 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "MIT", "dependencies": { "@_sh/strapi-plugin-ckeditor": "^3.0.9", + "@jkdev96/strapi-plugin-sso": "^0.4.7", "@strapi/plugin-cloud": "4.25.20", "@strapi/plugin-i18n": "4.25.20", "@strapi/plugin-users-permissions": "4.25.20", @@ -2224,6 +2225,23 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, + "node_modules/@jkdev96/strapi-plugin-sso": { + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/@jkdev96/strapi-plugin-sso/-/strapi-plugin-sso-0.4.7.tgz", + "integrity": "sha512-RudYvAhtIxotUce6yEM8UOjWMHRrkdmxwCE1Cm7gAI20GVMP5WHq7t0tybKZZF3J5Nsy9N+CgalkBkbmMpRZuA==", + "license": "MIT", + "dependencies": { + "generate-password": "^1.7.0", + "pkce-challenge": "^3.1.0" + }, + "engines": { + "node": ">=14.19.1 <=18.x.x", + "npm": ">=7.0.0" + }, + "peerDependencies": { + "@strapi/strapi": "^4.6.0" + } + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.8", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", @@ -8573,6 +8591,12 @@ "node": ">= 8" } }, + "node_modules/crypto-js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", + "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==", + "license": "MIT" + }, "node_modules/crypto-random-string": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", @@ -10869,6 +10893,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/generate-password": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/generate-password/-/generate-password-1.7.1.tgz", + "integrity": "sha512-9bVYY+16m7W7GczRBDqXE+VVuCX+bWNrfYKC/2p2JkZukFb2sKxT6E3zZ3mJGz7GMe5iRK0A/WawSL3jQfJuNQ==", + "license": "MIT" + }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -15243,6 +15273,15 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pkce-challenge": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-3.1.0.tgz", + "integrity": "sha512-bQ/0XPZZ7eX+cdAkd61uYWpfMhakH3NeteUF1R8GNa+LMqX8QFAkbCLqq+AYAns1/ueACBu/BMWhrlKGrdvGZg==", + "license": "MIT", + "dependencies": { + "crypto-js": "^4.1.1" + } + }, "node_modules/pkg-up": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", diff --git a/package.json b/package.json index d1e3701..d8c5116 100755 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "dependencies": { "@_sh/strapi-plugin-ckeditor": "^3.0.9", + "@jkdev96/strapi-plugin-sso": "^0.4.7", "@strapi/plugin-cloud": "4.25.20", "@strapi/plugin-i18n": "4.25.20", "@strapi/plugin-users-permissions": "4.25.20", diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index dd4679a..67fae9d 100755 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -657,6 +657,46 @@ export interface PluginI18NLocale extends Schema.CollectionType { }; } +export interface PluginStrapiPluginSsoRoles extends Schema.CollectionType { + collectionName: 'strapi-plugin-sso_roles'; + info: { + collectionName: 'sso-roles'; + description: ''; + displayName: 'sso-role'; + pluralName: 'sso-roles'; + singularName: 'roles'; + }; + options: { + draftAndPublish: false; + }; + pluginOptions: { + 'content-manager': { + visible: false; + }; + 'content-type-builder': { + visible: false; + }; + }; + attributes: { + createdAt: Attribute.DateTime; + createdBy: Attribute.Relation< + 'plugin::strapi-plugin-sso.roles', + 'oneToOne', + 'admin::user' + > & + Attribute.Private; + oauth_type: Attribute.String & Attribute.Required; + roles: Attribute.JSON; + updatedAt: Attribute.DateTime; + updatedBy: Attribute.Relation< + 'plugin::strapi-plugin-sso.roles', + 'oneToOne', + 'admin::user' + > & + Attribute.Private; + }; +} + export interface PluginUploadFile extends Schema.CollectionType { collectionName: 'files'; info: { @@ -954,6 +994,7 @@ declare module '@strapi/types' { 'plugin::content-releases.release': PluginContentReleasesRelease; 'plugin::content-releases.release-action': PluginContentReleasesReleaseAction; 'plugin::i18n.locale': PluginI18NLocale; + 'plugin::strapi-plugin-sso.roles': PluginStrapiPluginSsoRoles; 'plugin::upload.file': PluginUploadFile; 'plugin::upload.folder': PluginUploadFolder; 'plugin::users-permissions.permission': PluginUsersPermissionsPermission;