[TYPO3-english] felogin hook beforeRedirect doesn't work

Jigal van Hemert jigal.van.hemert at typo3.org
Thu May 17 18:57:31 CEST 2012


On 17-5-2012 14:33, Jan Wehe wrote:
> I want to use the username/password to login to an phpBB in the
> background, is there
> a hook or another way to get username/password from the felogin form?

Maybe an authentication service is the best in this case. A login 
request is processed by authentication services which are called in 
order of priority. An authentication service is usually used to verify 
the login information, initialize the fe user in the system and then 
indicate if the verification succeeded.

The value it returns can have several meanings:
- authentication succeeded, no need to check other services
- authentication failed, try next service
- authentication failed, stop checking other services

If you create an authentication service with a high priority it will be 
the first one which is tried. Your service can log into phpBB and tell 
TYPO3 that authentication failed and that the next service should be 
tried (or maybe that it should stop checking other services if logging 
in with phpBB failed?)

There are a number of authentication services in TER, such as a demo 
service and an LDAP service. You can use them for inspiration.

Jigal van Hemert
TYPO3 Core Team member

TYPO3 .... inspiring people to share!
Get involved: typo3.org

More information about the TYPO3-english mailing list