cors / document-auth
CORS - Document Auth
Installs: 4 361
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 2
Open Issues: 0
Type:pimcore-bundle
Requires
- php: >=8.0
- pimcore/pimcore: ^10.0
Requires (Dev)
README
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
- Install Bundle
composer require cors/document-auth
- Enable Bundle
bin/console pimcore:bundle:enable CORSDocumentAuthBundle
- Copy Security config into the security config
Security Config
security: encoders: Symfony\Component\Security\Core\User\User: '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