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 /pretokens?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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6ada323213a120f7150416d8523a235e347064e35e75d4767481cf948e55552 |
|
MD5 | 0f6c37747300c1004e8cad64c4e5ab96 |
|
BLAKE2b-256 | 61cb4c1ffdfa0ffd8ce387e24cbe9c5251d229ed4cbe68812daa427c7e4f66bf |
Close
Hashes for datashare_network_tokenserver-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ae58f576a69826394639fae41a418dbe483822d29abe276a18b05fa7cd56e60 |
|
MD5 | 7cd991845c2f94ab72376df126670dec |
|
BLAKE2b-256 | 31208c3919245c051bfa489404ca056cdd0a07c68dd57c03c4b32876d2929bb5 |