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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9cf646d89e3cea8f2e98f0c1419eab7b5167a6d192b273bc028d47a365e7f36 |
|
MD5 | a784fab29248b8d820f70225f3ff3c16 |
|
BLAKE2b-256 | 867da2e948ab0118d1387df940797b8d4b572e7dc2de1668a54a20ead776e2e9 |
Close
Hashes for datashare_network_tokenserver-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71d919e60f9db8a7e376b274922a2058803eb6d85d7f312f97d6079fe491ee48 |
|
MD5 | 5d16abf39f54a0d40bb6e86715adf0f8 |
|
BLAKE2b-256 | 78c45c8a13b82938ac00d31993a83776376c436a301356dbbbda7f8c29c9d443 |