Continuum

Make acegi authenticate against Continuum DB

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1-alpha-1
  • Component/s: None
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    2

Description

Implement the Acegi authentication interface to load the users from the DB using JDO.

Activity

Hide
Carlos Sanchez added a comment -

org.apache.maven.continuum.security.ContinuumAuthenticator in continuum-core must implement the Acegi interface. We need to translate the continuum user details to acegi user details.

Then it can be used in plexus-application.xml in continuum-webapp instead of the configured in memory database and the login page should authenticate through it, when accessing http://localhost:8080/continuum/secure/debug.jsp

Show
Carlos Sanchez added a comment - org.apache.maven.continuum.security.ContinuumAuthenticator in continuum-core must implement the Acegi interface. We need to translate the continuum user details to acegi user details. Then it can be used in plexus-application.xml in continuum-webapp instead of the configured in memory database and the login page should authenticate through it, when accessing http://localhost:8080/continuum/secure/debug.jsp
Hide
Emmanuel Venisse added a comment -

Instead of implement acegi interface in ContinuumAuthenticator, I'd prefer you create a sub class of ContinuumAuthenticator out of continuum-core. In a continuum-acegi module?

Show
Emmanuel Venisse added a comment - Instead of implement acegi interface in ContinuumAuthenticator, I'd prefer you create a sub class of ContinuumAuthenticator out of continuum-core. In a continuum-acegi module?
Hide
Henry S. Isidro added a comment -

Here's a patch for converting ContinuumUser to acegi UserDetails in ContinuumAuthenticator. One question though, where can we get the roles for the users?

Show
Henry S. Isidro added a comment - Here's a patch for converting ContinuumUser to acegi UserDetails in ContinuumAuthenticator. One question though, where can we get the roles for the users?
Hide
Emmanuel Venisse added a comment -

Henry, did you see my previous comment? It isn't a good idea to add acegi stuff in continuum-core.

Show
Emmanuel Venisse added a comment - Henry, did you see my previous comment? It isn't a good idea to add acegi stuff in continuum-core.
Hide
Carlos Sanchez added a comment -

I'll give it a try and then we'll move it out

Show
Carlos Sanchez added a comment - I'll give it a try and then we'll move it out
Hide
Henry S. Isidro added a comment -

I created continuum-acegi module and moved out the acegi implementations from ContinuumAuthentication.

Show
Henry S. Isidro added a comment - I created continuum-acegi module and moved out the acegi implementations from ContinuumAuthentication.
Hide
Carlos Sanchez added a comment -

Finished

Show
Carlos Sanchez added a comment - Finished

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: