Jump to:

10854 Posts in 2518 Topics by 1794 members

All other Modules

SilverStripe Forums » All other Modules » Auth External - pulling additional user data

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 903 Views
  • Judge
    Avatar
    Community Member
    79 Posts

    Auth External - pulling additional user data Link to this post

    A quick question on the auth_external module: when it authorises a user, can it also be used to pull additional information about that user and save it to their account? Even if it just allowed additional information to be passed and provided a hook, that would be great.

    I'm thinking about a third-party membership system that would provide HTML authentication. Once users are authenticated, the system can provide membership levels, personal name, renewal date, even personal messages from the administrator. The idea is that this information would be pulled in the user's SS account (created or amended as required) and that could then be used in various placed around the SS CMS pages.

    I am just wondering if Auth External makes this easy, i.e. already has this built-in as a feature.

    -- Jason

  • lancer
    Avatar
    57 Posts

    Re: Auth External - pulling additional user data Link to this post

    No, this is not something that is built in.

    A "getInfo" method could be added to the ExternalAuthenticator class to return additional attributes, but this is not relevant to the Authentication process. Also the only authentication source this could work with is LDAP.

  • Judge
    Avatar
    Community Member
    79 Posts

    Re: Auth External - pulling additional user data Link to this post

    Okay, thanks. At least I have a good module to work from.

    For us "authentication" extends beyond just knowing that a user knows their password, and includes knowing additional things about that user, because many of those things affect what the user has permission to do on the SS website. I'll just extend the module to enable an arbitrary data structure to be passed back, and take it from there.

    -- Jason

    903 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.