Download the PHP package undkonsorten/typo3-auto-login without Composer
On this page you can find all versions of the php package undkonsorten/typo3-auto-login. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download undkonsorten/typo3-auto-login
More information about undkonsorten/typo3-auto-login
Files in undkonsorten/typo3-auto-login
Package typo3-auto-login
Short Description Automatically authenticates a TYPO3 CMS backend user for development.
License GPL-2.0-or-later
Informations about the package typo3-auto-login
TYPO3 Automatic BE Authentication
What does it do?
This package automatically starts a backend user session for the open source CMS TYPO3, configured by an environment variable. You can set a cookie to temporarily disable the automatic login. There‘s a bookmarklet that does the job for you.
It is based on the Daniel Siepmann‘s great work. If you feel like saying "Thank you" or donating please consider him first!
Warning
Be considerate when using this tool. Always have security in mind.
Any usage beyond development on a local machine is strongly discouraged.
Make sure to only require this package with --dev
option and check your
deployment for measures to make sure the code is never deployed to a production
system.
By using this package you agree to be responsible for any damages arising from its usage.
Installation
Usage without composer has not been tested but might be perfectly possible if you take care about class (auto) loading by yourself.
Usage
To configure username for automatic login set the environment variable
$TYPO3_AUTOLOGIN_USERNAME
somewhere in your environment.
Add an initialization call in your AdditionalConfiguration.php
or in
a file required from there. Make sure to only initialize the service for
Development
context by either wrapping it with a condition or putting
it to a file only loaded in Development
context.
Autologin will fail and throw an exception in Production(/*)
contexts.
Bookmarklet
There are reasons to temporarily disable the automatic login. For this,
there‘s a bookmarklet that (un)sets the cookie _typo3-auto-login
for you
to prevent autologin. Just add a new bookmark with the following "URL"
and name the file according to your likings.
Q&A
-
Q: My user is not authenticated, what‘s wrong?
A: Either you have a typo in the username or your environment variable hasn‘t taken effect yet. You might need to restart your web server, docker container or the like. Or you‘re running
Production
context…
All versions of typo3-auto-login with dependencies
typo3/cms-core Version ^11.5.4 || ^12.4 || ^13.3