Name: aptly-api-gui
Owner: DARIAH-DE
Description: Proof of Concept for a HTML (Angular) GUI for the Aptly API
Created: 2016-04-04 16:25:37.0
Updated: 2017-03-13 11:52:18.0
Pushed: 2017-03-13 14:11:30.0
Homepage: null
Size: 170
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Proof of Concept for a HTML GUI for the aptly API. The GUI is implemented through an AngularJS on top a Flask API that handles authentication and proxies API requests to aptly.
This app supports only the features required for DARIAH and is designed to be run on DARIAH infrastructure. In particular, only a subset of API calls are supported and authentication is supported through Shibboleth only!
Install flask with its components from reqirements.txt
into a virtualenv named venv
:
ualenv venv
ce venv/bin/activate
install -r requirements
Add the WSGI app to Apache and enforce Shibboleth authentication at /login
:
DaemonProcess aptlygui user=www-data group=www-data threads=5 python-path=/opt/aptly-api-gui/venv
ScriptAlias /aptly /opt/aptly-api-gui/aptlygui.wsgi
ation /aptly>
GIProcessGroup aptlygui
GIApplicationGroup %{GLOBAL}
quire all granted
cation>
ation /aptly/login>
thType shibboleth
ibRequestSetting requireSession true
quire valid-user
cation>
Add the neccessary options to settings_local.py
:
ET_KEY = '*****************'
URL = 'http://localhost:8008/api'
N_GROUPS = 'group01;group07'
ATTRIBUTE_MAP = {
'eppn': (True, 'username'),
'cn': (True, 'fullname'),
'mail': (True, 'email'),
'isMemberOf': (False, 'isMemberOf')
Set up aptly to serve at the url configured.
This tool has been developed within the ?Humanities at Scale? project. This project has received funding from the European Union?s Horizon 2020 research and innovation programme under grant agreement 675570.