Authentication

compared with
Version 3 by Sandra TRINO
on Jan 21, 2011 15:39.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (21)

View Page History
{composition-setup}
{composition-setup}

{section}
{column:width=50%}

h2. Introduction

By default, Petals View is configured to works with an embedded User Management system that allows to manage application users directly from the Petals View GUI. So, if you want to delegate authentication to a REALM system or LDAP system or CAS system, you have to do configurations according to your needs.


h2. Available roles

To use an external authentication, you need to add some specific roles to the users to customize their Petals View access rights. Here is a list of available roles:

You must edit the web.xml (in PETALSVIEW_ROOT/WEB-INF repository) file and change comments. Comment the "classical authentication" section and the line "/WEB-INF/spring/petals-view-security-classical.xml". Uncomment the "realm authentication" section.

An exemple *web.xml* is provided here :
{toggle-cloak:id=code1}Display code example
{cloak:id=code1}
{code:lang=xml}
<web-app id="WebApp_ID" version="2.4"
<res-auth>Container</res-auth>
</resource-ref>

<context-param>
<param-name>contextConfigLocation</param-name>

{code}
{cloak}
You must configure your server to add realm security.


An exemple *context.xml* is provided here with JAAS implementation:
{toggle-cloak:id=code2}Display code example
{cloak:id=code2}
{code:lang=xml}
<Context>

{code}
{cloak}
h2. Authentification with LDAP


An exemple *web.xml* is provided here:
{toggle-cloak:id=code3}Display code example
{cloak:id=code3}
{code:lang=xml}
<web-app id="WebApp_ID" version="2.4"

{code}
{cloak}



h3. petals-view-security-ldap.xml configuration


An example petals-view-security-ldap.xml is provided here:
{toggle-cloak:id=code4}Display code example
{cloak:id=code4}
{code:lang=xml}
<beans xmlns:security="http://www.springframework.org/schema/security"

{code}
{cloak}
h2. Authentification with CAS


An exemple *web.xml* is provided here :
{toggle-cloak:id=code5}Display code example
{cloak:id=code5}
{code:lang=xml}
<web-app id="WebApp_ID" version="2.4"

{code}
{cloak}
h3. Configure CAS properties

*cas.server.url* : your CAS server URL.

*cas.logout.path* : the path to the CAS server logout page. In the above example, the full URL to the logout page is: [https://localhost:8443/cas/logout].

{color:#333333}{*}cas.login.path{*}{color} {color:#333333}: the path to the CAS server login page. In the above example, the full URL to the login page is :&nbsp;{color}{color:#000000}https:{color}{color:#000000}//localhost:8443/cas/login.{color}