定制 cors/document-auth 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cors/document-auth

最新稳定版本:0.4.0

Composer 安装命令:

composer require cors/document-auth

包简介

CORS - Document Auth

关键字:

README 文档

README

THIS BUNDLE IS DUAL LICENSED UNDER GPL-3.0 FOR PIMCORE 10 AND PIMCORE 11 AND MIT FOR PIMCORE 12 AND ABOVE.

This bundles allows to add basic auth based on Properties on Pimcore Documents.

Simply use these properties

  • password_enabled Checkbox: Enable and disable the password
  • password_username Text: Username
  • password_password Text: Password as RAW Text

Installation

  1. Install Bundle composer require cors/document-auth
  2. Enable Bundle bin/console pimcore:bundle:enable CORSDocumentAuthBundle
  3. Copy Security config into the security config

Security Config

security:
    enable_authenticator_manager: true

    password_hashers:
      Symfony\Component\Security\Core\User\InMemoryUser: 'auto'

    providers:
        document_auth_provider:
            id: CORS\Bundle\DocumentAuthBundle\Security\UserProvider

    firewalls:
        document_auth:
            request_matcher: CORS\Bundle\DocumentAuthBundle\Security\RequestMatcher
            http_basic:
                realm: Site
                provider: document_auth_provider

    access_control:
      - { path: ^/, role: ROLE_USER, attributes: {'_firewall_context': 'document_auth'}}

统计信息

  • 总下载量: 5.69k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2021-11-11