Contact Kontakt Alle Awards anzeigen
Contact
Alle Awards anzeigen

cors/document-auth

not-reviewed

No Category

No author set

Version

0.2.2

Last updated

Compatible Pimcore Version

-

Contact

-

No  Reviewer

cors/document-auth

No Category

Zusammenfassung

CORS - Document Auth


Readme

CORS Property Basic Auth

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'}}

Review status

not-reviewed

?>

No author set

Version

0.2.2

Last updated

Compatible Pimcore Version

-

Contact

-

No  Reviewer