Old ADFS Addon Development

Latest news

Login to Beta-Server<SandBox<ShowGroupsPlugin. Look Results

next important steps

  • interaction between TWiki server to ADFS server defining/have code.
  • [1] cache the username/password local to TWiki instance.. this must be standard Perl modules to interact with LDAP server
  • [2] cache the group information toTWiki INstance from ADFS server
  • [3] Add these subrouties in ADFSPasswdUser.pm and ADFSUserMapping.pm modules

The most important is - defining the right cUID.. in your case.. since you are going to use Email as loginname.. so just keep cUID as loginname... everything gets simplified

Inheritance from Sopan

package TWiki::Users::DemoPasswdUser; use base 'TWiki::Users::Password';

package TWiki::Users::DemoUserMapping; use base 'TWiki::UserMapping';

The TWiki::UserMapping deals with TWiki::User.pm.. internally or User.pm - deals with new modules when TWiki does authentication / usermaping etc

Summary

  • Re use module code
  • write UserMapping and PasswordManager
  • look for best caching solution

Steps:

  1. create Users/ADFSUserMapping.pm Done
    • Users/ADFSUserMapping.pm would have to inherit from TWikiUserMapping.pm:
    • create template for the new UserMapping.pm Done
      • Package TWiki::Users::ADFSUserMapping; Done
      • use base' TWiki::Users::TWikiUserMapping'; Done
      • create the “sub isInList” function, Done
  2. write new “sub isInList” function
  3. Modify lib/LocalSite.cfg to point to this new module
    • $TWiki::cfg{UserMappingManager} = 'TWiki::Users::ADFSUserMapping';';
  4. write PasswordManager, point again in LocalSite.cfg
  5. the new module inherit from base module written there

Packaging as Twiki Addon in Twiki.org Loginname to create WikiName:

  1. inherit “sub getLoginName”
  2. inherit “sub getWikiName”

this gives the WikiName

reading ENV
these can be read using CGI variables.. TWiki is just another Perl/CGI application and cgi handle is avaialable almost at all functions.. at every point within twiki

Flowcharts
Flowchart: User.pm Flowchart_UserPm.png

Flowchart: User Login to Twiki Flowchart_UserLogin.png

-- AlexanderBernegger - 04-Nov-2009

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng flowchart_UserLogin.png r1 manage 48.1 K 2009-09-28 - 11:40 UnknownUser  
PNGpng flowchart_UserPm.png r1 manage 162.4 K 2009-09-28 - 09:04 UnknownUser  
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2010-05-10 - unknown
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback