Version 2, last updated by Titas Norkunas at August 22, 2011 00:05 UTC

Setup authorization and authentication

This is optional. If you only want simple code browser (you do, really) skip this!

Install breakout-mod-auth

Authorization and authentication is done with python module breakout-mod-auth. To install:

  1. cd /usr/share/python-support/ (or other location, just make sure you provide the correct path in Apache virtual host config)
  2. sudo git clone git://git.assembla.com/breakout-mod-auth.git

Create Apache configuration files

  • /etc/apache2/breakout/py_auth (BASE paths should be the same that you use in breakout-control/etc/control.yml)
    PythonOption AUTH_SOAP_URL "http://localhost:3000/backend/user"
    PythonOption SVN_BASE /opt/breakout/svn
    PythonOption HG_BASE /opt/breakout/hg
    PythonOption GIT_BASE /opt/breakout/git/repositories
    SetEnv PYTHON_EGG_CACHE /var/tmp/.eggs