Skip to content

neerdoc/taiga-contrib-ungit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Taiga contrib gitlab auth

Kaleidos Project Managed with Taiga.io

The Taiga plugin for gitlab authentication (Ported from official gitlab auth).

Installation

Production env

Taiga Back

In your Taiga back python virtualenv install the pip package taiga-contrib-gitlab-auth-official with:

  pip install taiga-contrib-gitlab-auth-official

Modify your settings/local.py and include the line:

  INSTALLED_APPS += ["taiga_contrib_gitlab_auth"]

  # Get these from Admin -> Applications
  GITLAB_API_CLIENT_ID = "YOUR-GITLAB-CLIENT-ID"
  GITLAB_API_CLIENT_SECRET = "YOUR-GITLAB-CLIENT-SECRET"
  GITLAB_URL="YOUR-GITLAB-URL"

Taiga Front

Download in your dist/plugins/ directory of Taiga front the taiga-contrib-gitlab-auth compiled code (you need subversion in your system):

  cd dist/
  mkdir -p plugins
  cd plugins
  svn export "https://github.com/taigaio/taiga-contrib-gitlab-auth/tags/$(pip show taiga-contrib-gitlab-auth-official | awk '/^Version: /{print $2}')/front/dist"  "gitlab-auth"

Include in your dist/conf.json in the 'contribPlugins' list the value "/plugins/gitlab-auth/gitlab-auth.json":

...
    "gitLabClientId": "YOUR-GITLAB-CLIENT-ID",
    "gitLabUrl": "YOUR-GITLAB-URL",
    "contribPlugins": [
        (...)
        "/plugins/gitlab-auth/gitlab-auth.json"
    ]
...

Dev env

Taiga Back

Clone the repo and

  cd taiga-contrib-gitlab-auth/back
  workon taiga
  pip install -e .

Modify taiga-back/settings/local.py and include the line:

  INSTALLED_APPS += ["taiga_contrib_gitlab_auth"]

  # Get these from Admin -> Applications
  GITHUB_API_CLIENT_ID = "YOUR-GITLAB-CLIENT-ID"
  GITHUB_API_CLIENT_SECRET = "YOUR-GITLAB-CLIENT-SECRET"
  GITLAB_URL="YOUR-GITLAB-URL"

Taiga Front

After clone the repo link dist in taiga-front plugins directory:

  cd taiga-front/dist
  mkdir -p plugins
  cd plugins
  ln -s ../../../taiga-contrib-gitlab-auth/front/dist gitlab-auth

Include in your dist/conf.json in the 'contribPlugins' list the value "/plugins/gitlab-auth/gitlab-auth.json":

...
    "gitLabClientId": "YOUR-GITLAB-CLIENT-ID",
    "gitLabUrl": "YOUR-GITLAB-URL",
    "contribPlugins": [
        (...)
        "/plugins/gitlab-auth/gitlab-auth.json"
    ]
...

In the plugin source dir taiga-contrib-gitlab-auth/front run

npm install

and use:

  • gulp to regenerate the source and watch for changes.
  • gulp build to only regenerate the source.

Running tests

We only have backend tests, you have to add your taiga-back directory to the PYTHONPATH environment variable, and run py.test, for example:

  cd back
  add2virtualenv /home/taiga/taiga-back/
  py.test

About

Taiga plugin for local git integration http://taiga.io

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 84.9%
  • CoffeeScript 8.9%
  • JavaScript 3.2%
  • HTML 3.0%