deNBI/cloud-portal-client-connector

Name: cloud-portal-client-connector

Owner: German Network for Bioinformatics Infrastructure

Description: null

Created: 2017-10-13 07:04:52.0

Updated: 2018-01-11 12:11:12.0

Pushed: 2018-01-15 12:17:20.0

Homepage: null

Size: 395

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Cloud-Portal-Connector

Installation

1.

install git+https://github.com/deNBI/cloud-portal-client-connector@dev_connector

or

install git+https://github.com/deNBI/cloud-portal-client-connector@master
  1. Add “connector” to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [

    ...
    'connector',
    

    ]

  2. Include the connectors URLconf in your project urls.py like this::

    url(r'^connector/', include('connector.urls')).

  3. Or if login should be required (cloud-portal) like this:: url(r'^connector/',decorator_include(login_required(login_url='oidc/authenticate/'), 'connector.urls')),

  4. Run:

    on manage.py makemigrations connector
    
  5. Run:

    on manage.py migrate connector
    

    to create the connector tables.

Set environment variables

You need to set environment variables. SERVICE_USER_LOGIN SERVICE_USER_PASSWORD

Attention: The thrift client needs a certfile and a ca_certs.

You need to download the config.yml in your directory with the manage.py. In the config.yml you can set the right Paths.

The default filepath to the certfile and the ca_certs are at the moment test/keys/client.pem and test/keys/CA.pem.

Create certificates

To create your own certificates follow the instructions on this Website: thrift certificates

Attention: The connector needs the PerunUserValuesMiddleware used (perun_connector folder).


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.