No project description provided
Project description
Ξ 🛂 Datalayer IAM
Datalayer IAM service delivers Identity and Access (aka Authentication and Authorization) to the Datalayer platform.
make dev
make start
open http://localhost:9700/api/iam/version
Development
IAM as middleware
The devcontainer docker compose file defines traefik as a reverse proxy behind which is added a whoami service.
The proxy check for valid user authentication by adding a forwardAuth middleware that will ask datalayer IAM if the request is allowed or not.
To test it, assuming you are executing this project with VS Code on dev container,
-
Uncomment the services reverse-proxy and whoami in the dev docker-compose. Then restart the dev container.
-
Update your local file
/etc/hoststo add:
127.0.1.1 whoami.example.com
- Start IAM server
cd iam
make start
-
Create an datalayer user and get a JWT token for it.
-
With a terminal (outside of VS Code), you can now test the forwardAuth middleware
a. Forbidden case:
curl http://whoami.example.com:9080b. Allowed case:curl -H 'Authorization: Bearer <JWT token>' http://whoami.example.com:9080
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datalayer_iam-0.0.11.tar.gz.
File metadata
- Download URL: datalayer_iam-0.0.11.tar.gz
- Upload date:
- Size: 52.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a316ea185534ec46bc7912b97483353b4b821e4bc8e8ce53bf698c8cc7bc9ac4
|
|
| MD5 |
57efdfaad59a3098bd83384b226892be
|
|
| BLAKE2b-256 |
fd6b736e75245f18c0b8430cf2a5806b9f8399cb80b5e22b8c4f312f212aad29
|
File details
Details for the file datalayer_iam-0.0.11-py3-none-any.whl.
File metadata
- Download URL: datalayer_iam-0.0.11-py3-none-any.whl
- Upload date:
- Size: 65.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c38eb05dd1d416d79de6f88388ab3ad8bf23012eaa0df5087fe1ef3dccf2810
|
|
| MD5 |
cf5abaa4ddb2a9e89bd96c61643f3ea7
|
|
| BLAKE2b-256 |
b965ecacef5a3e42e63498ccb5d7f7489d51da8dcaed10f515e38ee48e7dc7a5
|