DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

RealURL

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed by:radu
Changed:2010-04-18T18:22:34.630000000
Email:dmitry@typo3.org
Info 1:
Info 2:
Info 3:

rm_casautologin

Extension Key: rm_casautologin

Copyright 2008-2010

Radu Mogoş<radu.mogos@pixelplant.ro>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.com

Table of Contents

rm_casautologin 1

Introduction 1

What does it do? 1

Features 1

Configuration 1

Installation 1

Simple scenario 2

ToDo list 2

Changelog 2

Introduction

What does it do?

The extension allows the auto login of TYPO3 frontend users (fe_users) that are already logged in at a CAS server.

Please note that this extension uses and works with CAS version 2. The latest CAS version at the moment is 3. It might work with 3 too, I just didn't have the opportunity to test it yet.

The extension extends the auth service, implementing the getUser and authUser methods.

The functionality is as follows. User A visits your site, which is powered by TYPO3. If user A is already logged in at your specified CAS server, then user A is automatically logged in at your TYPO3 site, and so a fe_users session is created for user A. The extension also includes logout functionality, so when user A wants to log out of your TYPO3 site, they are logged out from the CAS server too. Of course if you don't want this functionality you can just comment it out in the extension code.

Features

The extension includes fe_users autologin functionality and also a logout functionality for the CAS server.

Configuration

Installation

Here are the steps required to install and configure the extension

Install it in the Extension Manager

Configure the CAS server, the CAS server port, and the service url (your website url) in the extension manager.

img-1

You don't need to specify any Typoscript configuration.

Simple scenario

Here is a simple scenario in which you might want to use this extension. Say you have a CAS sso server set up, and you also want fe_users on another TYPO3 site you have to be able to login if they already have a CAS session. The extension checks to see if the current visitor has a CAS session. If they do, it retrieves their username and creates a fe_users session using that username, if the user exists in the TYPO3 fe_users table too.

Normally you use sso to prevent having duplicate data in different databases, but in this case, it is assumed that you also need additional information about the user, like usergroup, access data, personal data, and most of these fields are TYPO3 related.

So, to keep it simple, the link between the 2 systems is the username. You have a CAS username and an equal TYPO3 username. If a CAS session exists, the TYPO3 session for the same username is created and so, that user gains access to anything TYPO3 has to offer, from usergroup or user specific content, to other custom user fields and custom user extensions you create.

ToDo list

Add support for both CAS version 3 and 2. This should be fixed with a checkbox or select in the extension configuration and some minor code changes.

Changelog

  • 1.0.0: First upload and first extension I uploaded. As you can see I got the version number wrong. It should have started from 0.0.1
  • 1.0.1: Added also the manual. Changed the status to beta.

rm_casautologin - 2