Skip to main content

Tool to link accounts

Project description

PyPI Badge Read the Docs Code style: black SQAaaS badge shields.io

Account LInking SErvice

Tool to link accounts

The Account LInking SErvice ALISE implements the concept of site-local account linking. For this a user can log in with one local account and with any number of supported external accounts (e.g. Helmholtz-ID and Google). The local account is on at an HPC centre, which also comprises the Unix-User name.

Federated services can use this informatin whenever they need to map a federated identity to a local Unix account at a computer centre.

Examples for this are http/webDAV file access. WeDAV supports Basic Authentication, which is transported via an OIDC Access Token to convey the federated users' identity. The server needs to store the uploaded data with a specific account name, such that the same user could later access the uploaded date from e.g. computing jobs on that same server.

Alise may be used to ask users for linking their federatd identity to a local one, so that the webDAV server could find the users' corresponding local unix ID.

Installation

Account LInking SErvice is available on PyPI. Install using pip:

pip install alise

You can also install from the git repository:

git clone https://github.com/marcvs/alise
pip install -e ./alise

Dependencies

ALISE depends on gunicorn:

apt install gunicorn

Run locally (e.g. for testing)

# from the dir where alise is installed:
gunicorn alise.daemon:app -k "uvicorn.workers.UvicornWorker"

Then point your browser to http://localhost:8000

Run as a service

Nginx

We provide an nginx configuration file in alise/etc/nginx.alise (github). Simply copy or it to nginx like:

ln -s $PWD/alise/etc/nginx.alise /etc/nginx/sites-enabled

Systemd

We provide a systemd service file in alise/etc/alise.service (github). Simply copy link it to systemd like:

ln -s $PWD/alise/etc/alise.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable alise.service
systemctl start alise.service

Static HTML

Place content of alise/static to place that nginx can serve as /static

Icon

Place an icon of your site into /static/<name of your sites config entry.svg (Yep that's a bit hacky)

Configuration

ALISE is configured via a single config file. A template is provided in alise/etc/alise.conf(github). It should be self-explanatory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alise-1.1.3.tar.gz (282.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alise-1.1.3-py2.py3-none-any.whl (269.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file alise-1.1.3.tar.gz.

File metadata

  • Download URL: alise-1.1.3.tar.gz
  • Upload date:
  • Size: 282.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.8

File hashes

Hashes for alise-1.1.3.tar.gz
Algorithm Hash digest
SHA256 e06b8a0c16dfb34d09ee523d71b7f44e2fb396665012c60b46b73fbcc9b74526
MD5 d884346c6b400120feaf03ba82f46c39
BLAKE2b-256 b2c7adba8dcba73121ecff1cb422bc1d47d92e3a1edb911735177112eca5799b

See more details on using hashes here.

File details

Details for the file alise-1.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: alise-1.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 269.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.8

File hashes

Hashes for alise-1.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c14965d01b867d0775d118fa32fe434631bd30e8ccc4939242ec958100e7edd2
MD5 9d4a2ad53c1b396f9dd3f6eca606643a
BLAKE2b-256 fb6bc888f5873eae06ccbe7e628d8f60b6e220ce79ec560ffabedae6bae49f0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page