Main Content

Magnolia Community Forums: Development: Customize login and registration


  • luigicolella84
    luigicolella84
    Full name: luigi colella
    Posts: 1
    Last post: Nov 21, 2014 3:34:01 PM
    Registered on: Nov 21, 2014
    Customize login and registration
    #1 by luigicolella84 on Nov 21, 2014 3:34:01 PM

    Hi,
    i'm new in magnolia cms.
    my goal is customize login and registration component.
    i would like to call an external web service when user register or logs-in in magnolia.
    how i can do it?
    which classes i will have to override?
    can you help me?
    Thanks a lot

  • will
    will
    Full name: Will Scheidegger
    Posts: 425
    Last post: Aug 24, 2017 3:38:44 PM
    Re: Customize login and registration
    #2 by will on Nov 21, 2014 6:14:28 PM

    Hi Luigi

    Magnolia handels login via JAAS [1]. You would have to write your own jaas module which will most likely extend info.magnolia.jaas.sp.jcr.JCRAuthenticationModule (or AbstractLoginModule). And you will probably also need to write your own user manager class extending info.magnolia.cms.security.ExternalUserManager. Maybe you’ll need your own user class as well, extending info.magnolia.cms.security.ExternalUser.

    Then you’ll have to patch it all together with configuration:
    - the authentication module needs to be configured in the JAAS chain (in the jaas.config file)
    - the user manager has to be added in the magnolia configuration under config:/server/security/userManagers

    But this is definitely no entry level topic. I had no clue about JAAS when I tackled the task and it took me some head scratching before I got it running.

    Good luck!
    -will

    [1] http://www.oracle.com/technetwork/java/javase/jaas/index.html <http://www.oracle.com/technetwork/java/javase/jaas/index.html>

  • agl-chandan
    agl-chandan
    Full name: Chandan Agarwal
    Posts: 1
    Last post: Jun 7, 2017 6:32:47 PM
    Registered on: Jun 7, 2017
    Re: Customize login and registration
    #3 by agl-chandan on Jun 7, 2017 6:32:47 PM

    Hi Will,
    Would it be possible to provide the code/example of your Module/project.
    I am not able to connect the dots.

    thanks

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon https://me.yahoo.com/