External Auth

Matt Schultz edited this page Jan 31, 2016 · 8 revisions

Newer versions of Codiad (starting with 2.x) allow to use a custom auth scheme to access Codiad.

Preconditions

  • Each user who should have access over an external auth bridge has to be configured in Codiad as well.
  • The knowledge of the password in Codiad is not required.

Setup

  • Create or install an external auth bridge to your local Codiad installation. A template containing the minium amount of information is $_SESSION['user']. Additional parameters are for language, template and project.

      <?php 
              $_SESSION['user'] = 'test';
    
              $_SESSION['lang'] = 'en';
              $_SESSION['theme'] = 'default';
              $_SESSION['project'] = 'test';
      ?>
    
  • To enable external auth bridge, open your config.php and enable external auth with the path to your local bridge

    define("AUTH_PATH", "/path/to/AuthTemplate.php");

Examples

Codiad-SQLExternalAuth : An SQL External Auth bridge for Codiad using PHP Data Objects (PDO) (see tutorial at destination for setup instructions).

Codiad-LDAPExternalAuth : An LDAP External Auth bridge for Codiad (see tutorial at destination for setup instructions).

Codiad-HTTP External Auth: shows how to integrate HTTP Basic authentication with Codiad, and create users in Codiad configuration if required

Codiad-Auth-NTLM provides a way to authenticate with NTLM or against SMB

Codiad-IMAP_Auth provides a way to authenticate against an IMAP server

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.