remp / crm-admin-module
CRM管理模块
3.4.0
2024-06-17 08:22 UTC
Requires
- php: ^8.1
- dev-master
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.11.1
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.0
- 1.2.0
- 1.1.0
- 1.0.0
- 1.0.0-beta2
- 1.0.0-beta1
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.2
- 0.32.1
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.1
- 0.21.0
- 0.20.5
- 0.20.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.10
- 0.2.9
- 0.2.8
- 0.2.7
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.1
- dev-dependabot/npm_and_yarn/minimist-1.2.8
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/minimatch-3.1.2
- dev-dependabot/npm_and_yarn/nanoid-3.3.4
- dev-dependabot/npm_and_yarn/postcss-8.2.13
- dev-dependabot/npm_and_yarn/terser-4.8.1
- dev-dependabot/npm_and_yarn/eventsource-1.1.1
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/ansi-regex-5.0.1
This package is auto-updated.
Last update: 2024-09-20 12:56:13 UTC
README
安全登录
当访问管理时,CRM提供另一层安全防护。如果您在应用程序配置中启用admin_secure_login_check
标志(CRM管理中的“要求管理员角色使用安全认证方法”),CRM将要求存在一系列特定标志,才能允许访问管理
- 登录期间设置的会话标志,表示这是一个安全的登录。
- 这需要由您决定并设置,并通过您自己的SignInEventHandler实现。以下是一个参考实现。我们通常建议在存在来自特定已验证域的Google登录会话时设置此标志。
- 用户元数据标志
secure_login_allowed
在CRM管理中手动设置(通过用户详情)。将其视为用户确实可以访问管理的一次性确认。
登录事件处理程序的参考实现
class UserSignInEventHandler extends AbstractListener { private const SECURE_LOGIN_META = 'secure_logged_in'; private $secureAdminAccess; public function __construct(SecuredAdminAccess $securedAdminAccess) { $this->secureAdminAccess = $securedAdminAccess; } public function handle(EventInterface $event) { if (!$event instanceof UserSignInEvent) { throw new \Exception("Invalid type of event received, UserSignInEvent expected, got: " . get_class($event)); } $source = $event->getSource(); if ($source === \Crm\UsersModule\Auth\Sso\GoogleSignIn::ACCESS_TOKEN_SOURCE_WEB_GOOGLE_SSO) { $this->secureAdminAccess->setSecure(true); return; } $this->secureAdminAccess->setSecure(false); } }
组件
DateFilterFormFactory
带有可选容器的通用从/到日期过滤器。
AdminMenu
顶部管理员菜单。