Menu

External authorization with session variables

Help
2004-03-23
2012-10-11
  • Steffen Schramm

    Steffen Schramm - 2004-03-23

    Hello

    I'm using session variables for authorization of my pages. A login page exists which sets the userid and password to a custom named PHP session. Now I want to include the PHPWiki into it. With PHPWiki 1.2 I could easily change it to display the userid instead of the IP.

    With PHPWiki 1.3.7 I can't get it to work. The login mechanism seems complicated. Doesnt there exist a line in code where I could easily override the userid? Authorization is not really needed, no password checking etc. I would just need to get my session variable and overide the userid. I would then take out the normal PHPWiki login dialog.

    I can't use version 1.2 because I need full history saving of the pages. Would it be easier to make PHPWiki 1.2 save the complete history?

    Regards, Steffen

     
    • Reini Urban

      Reini Urban - 2004-04-10

      haven't checked that, but for a valid user you just have to create a new WikiUser (or _WikiUser in the 1.3.8 release), and set the userid and level  object parameters. in main.php

       
      • Reini Urban

        Reini Urban - 2004-04-18

        see the current CVS code.
        the _SessionPassUser object.

         
    • Francisco Gimeno

      I'm trying to integrate something similar... an existing login system to phpWiki.

      could you be more specific?

      I create a new _WikiUser ( using 1.3.9 code ), and:
      1) what name should this object have?
      2) where in main.php?

      Thx a lot
      BR

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.