@zenith-open/zenithcms-plugin-auth-saml 1.0.0-beta.10 → 1.0.0-beta.8

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.
@@ -0,0 +1,2 @@
1
+ import { ZenithPlugin } from '@zenith-open/zenithcms-types';
2
+ export declare const samlAuthPlugin: () => ZenithPlugin;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.samlAuthPlugin = void 0;
4
+ const samlAuthPlugin = () => {
5
+ return {
6
+ id: 'auth-saml',
7
+ name: 'SAML 2.0 Authentication',
8
+ description: 'Enterprise SAML 2.0 Identity Provider Integration',
9
+ onReady: async (ctx) => {
10
+ ctx.logger.info('[SAML Plugin] Registering SAML passport strategy...');
11
+ const core = require('@zenith-open/zenithcms-core');
12
+ if (core && core.passport && core.AuthStrategyRegistry) {
13
+ const { MultiSamlStrategy } = require('@node-saml/passport-saml');
14
+ // In reality, this would configure passport.use(new MultiSamlStrategy(...))
15
+ core.AuthStrategyRegistry.registerStrategy({
16
+ name: 'saml',
17
+ displayName: 'Enterprise SAML 2.0',
18
+ icon: 'shield-check',
19
+ authenticate: async () => ({ success: false, error: 'SAML not fully configured in scaffold' })
20
+ });
21
+ }
22
+ }
23
+ };
24
+ };
25
+ exports.samlAuthPlugin = samlAuthPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenith-open/zenithcms-plugin-auth-saml",
3
- "version": "1.0.0-beta.10",
3
+ "version": "1.0.0-beta.8",
4
4
  "description": "Enterprise SAML 2.0 Auth Strategy",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,8 +11,8 @@
11
11
  "typescript": "^5.4.5"
12
12
  },
13
13
  "peerDependencies": {
14
- "@zenith-open/zenithcms-types": "1.0.0-beta.10",
15
- "@zenith-open/zenithcms-core": "1.0.0-beta.10"
14
+ "@zenith-open/zenithcms-types": "1.0.0-beta.8",
15
+ "@zenith-open/zenithcms-core": "1.0.0-beta.8"
16
16
  },
17
17
  "publishConfig": {
18
18
  "access": "public"