Skip to main content

Datashare Network Token Server

Project description

datashare-network-tokenserver CircleCI

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
  • POST /pretokens?uid=foo
    • parameters :
      • uid: (string) user id
      • payload: list of pretokens msg pack encoded
      • returns a token list msg pack encoded

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

datashare-network-tokenserver-0.1.2.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datashare_network_tokenserver-0.1.2-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file datashare-network-tokenserver-0.1.2.tar.gz.

File metadata

  • Download URL: datashare-network-tokenserver-0.1.2.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.8.2 requests/2.27.1 setuptools/62.0.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10

File hashes

Hashes for datashare-network-tokenserver-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b6ada323213a120f7150416d8523a235e347064e35e75d4767481cf948e55552
MD5 0f6c37747300c1004e8cad64c4e5ab96
BLAKE2b-256 61cb4c1ffdfa0ffd8ce387e24cbe9c5251d229ed4cbe68812daa427c7e4f66bf

See more details on using hashes here.

File details

Details for the file datashare_network_tokenserver-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: datashare_network_tokenserver-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.8.2 requests/2.27.1 setuptools/62.0.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10

File hashes

Hashes for datashare_network_tokenserver-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ae58f576a69826394639fae41a418dbe483822d29abe276a18b05fa7cd56e60
MD5 7cd991845c2f94ab72376df126670dec
BLAKE2b-256 31208c3919245c051bfa489404ca056cdd0a07c68dd57c03c4b32876d2929bb5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page