Python authentication for FIWARE Data Space
Project description
Python Authentication for FIWARE Data Space (FDSAuth)
Welcome to the Python Authentication for FIWARE Data Space repository. This library, or FDSAuth, facilitates seamless FIWARE Data Space framework authentication. With built-in support for various authentication protocols and methods, FDSAuth helps developers implement secure and reliable authentication in their applications, ensuring compliance with FIWARE standards and best practices.
Table of Contents 📚
Installation 🛠️
To install FDSAuth, simply use pip
:
pip install fdsauth
Usage 💻
First, define following environment variables in your .env
file. Substitute example values for your own:
KEYCLOAK_PROTOCOL=http
KEYCLOAK_ENDPOINT=keycloak-consumer.127.0.0.1.nip.io:8080
KEYCLOAK_USERNAME=test-user
KEYCLOAK_PASSWORD=test
Usage example:
from dotenv import load_dotenv
from fdsauth import Consumer
# Load environment variables from .env file
load_dotenv()
# Create a Consumer instance and retrieve the verifiable credential
consumer = Consumer()
jwt_credential = consumer.get_auth_token()
print(jwt_credential)
Development 🚀
# Create virtual env
python3 -m venv ./venv && source ./venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Build
python setup.py sdist bdist_wheel
# Local testing
pip install dist/fdsauth-X.X.X-py3-none-any.whl
Contact 📫
For any questions or support, please reach out to us via GitHub Issues or email us at joamoteo@upv.es.
Acknowledgments 🙏
This work has been made by VRAIN for the CitCom.ai project, co-funded by the EU.
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
Built Distribution
File details
Details for the file fdsauth-0.0.4.tar.gz
.
File metadata
- Download URL: fdsauth-0.0.4.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b2c425dfe3593a8148ca97f2c30be68e89a33f8ef7b03a4c2eb497c669afeac |
|
MD5 | c6071f5029c4ee9023d1a9401801a3d5 |
|
BLAKE2b-256 | 126bf4962bff2e1193f71e058c279bb4010d52b16d8afb0df9ea150879d1bcba |
File details
Details for the file fdsauth-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: fdsauth-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2ee1e37455ef85b2529895299b778f675d2b260bb36bdae0c6190726a7aff5b |
|
MD5 | 375ddbf0ceb0d7808e0ad0ee1f9cc2e7 |
|
BLAKE2b-256 | 79b975389fd30e35779c963b5c19d290e053fbc28b72fe66eee32f8378842d6e |