Skip to content
This repository was archived by the owner on Jun 17, 2026. It is now read-only.

SDM-TIB/ckanext-logingitlab

Repository files navigation

ckanext-logingitlab

This plugin enables login into CKAN through GitLab. It was developed in the context of CoyPu.

Requirements

  • CKAN 2.9

Installation

To install ckanext-logingitlab:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate
    
  2. Install the ckanext-logingitlab Python package into your virtual environment:

    pip install ckanext-logingitlab
    
  3. Add logingitlab to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/ckan.ini).

  4. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:

    sudo service apache2 reload
    

Config settings

  • logingitlab.consumer_key: The consumer key, required
  • logingitlab.consumer_secret: The consumer's secret, required
  • logingitlab.base_url: The base URL for the log in, optional, default: https://gitlab.com/api/v4/
  • logingitlab.access_token_url: The URL for retrieving access tokens, optional, default: https://gitlab.com/oauth/token
  • logingitlab.authorize_url: The URL for authorizing the user, optional, default: https://gitlab.com/oauth/authorize
  • logingitlab.scope: The OAuth2 scope, optional, default: read_user

Developer installation

To install ckanext-logingitlab for development, activate your CKAN virtualenv and do:

git clone https://github.com/SDM-TIB/ckanext-logingitlab.git
cd ckanext-logingitlab
pip install -e .
pip install -r dev-requirements.txt

Tests

To run the tests, do:

pytest --ckan-ini=test.ini

To run the tests and produce a coverage report, first make sure you have pytest-cov installed in your virtualenv (pip install pytest-cov) then run:

pytest --ckan-ini=test.ini  --cov=ckanext.logingitlab

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors