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.2.tar.gz (281.9 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.2-py2.py3-none-any.whl (269.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: alise-1.1.2.tar.gz
  • Upload date:
  • Size: 281.9 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.2.tar.gz
Algorithm Hash digest
SHA256 46ef2c12e55aa48e622f017f50454f3cd83281dd9c5083060115ac512b3529df
MD5 a849806bdbeb473a991b2a8cc7fa1d6f
BLAKE2b-256 303d0756f6fcca1408602b8ee6defa44cb52fe4d8ca7b1cef7fad80ac1939c4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alise-1.1.2-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.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c434adb1325a86f58c759869a76ffaa3c5e50843928a86bdded6667027485f18
MD5 da72f9580331bbd338c86d7bb0dd5add
BLAKE2b-256 2dbfd4119ee78d658f5860d72b3eba859fb9f72e9dcaa21fc28701f5a836f2f0

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