Datashare Network Token Server
Project description
datashare-network-tokenserver
A server to issue tokens based on blind signature
It is based on springlab@EPFL SScred based itself on petlib and itelf based on openssl.
It is supposed to be secured behind an SSO/OAuth2 server.
Configuration
Configuration is provided with environment variables :
- TOKEN_SERVER_REDIS_URL: redis url (default:
redis://redis
) - TOKEN_SERVER_REDIS_TTL: time to live for commitments internal parameters (default 30s)
- TOKEN_SERVER_SKEY: master secret key for the server encoded in msgpack hex string
Endpoints
All endpoints should be secured with HTTPS (TLS).
GET /publickey
- returns the server public key
POST /commitments?uid=foo&number=3
- parameters :
- number: (int) number of token to generate
- uid: (string) user id
- returns a commitment list msg pack encoded
- parameters :
POST /tokens?uid=foo
- parameters :
- uid: (string) user id
- payload: list of pretokens msg pack encoded
- returns a token list msg pack encoded
- parameters :
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
Close
Hashes for datashare-network-tokenserver-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 744a0d1659064c3e22068320f8031fcd638ce60ba5eb339e97fd8aa906e5cd90 |
|
MD5 | b98e42d00a4efe0b97ef3b19fbc6e0d5 |
|
BLAKE2b-256 | 5c5160c03e5b3c71366294c6eca42c96b7fcf2e5cc1da508f530196c4ff797c5 |
Close
Hashes for datashare_network_tokenserver-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1eac6f2042433307dc15f153f7257e303ed7db834f738eccaffc29351fe3d4a8 |
|
MD5 | d369ae74f853eaced5d81d8af43c6123 |
|
BLAKE2b-256 | 29e9623243eb0ea885ee155d1c4ea657d739626824b45b7607dc4ff723d05951 |