Skip to main content

Password provider for blockstack/EOS synapse server

Project description

matrix-blockstack-password-provider

Matrix Synapse Authentication Provider for Blockstack IDs and EOS account names

Installation

Use pip install matrix_blockstack_password_provider to install the package in your synapse environment

Configuration

In homeserver.yaml edit the password_provider section:

password_providers:
    - module: "matrix_blockstack_password_provider.BlockstackPasswordProvider"
      config:
        enabled: true
        endpoint: "https://core.blockstack.org"

The endpoint is optional and defaults to https://core.blockstack.org

Known Homeservers for Blockstack users

Client support for Blockstack

  • Currently only OI Chat supports this type of authentication.
  • Client apps need to write a file mxid.json into the root of their gaia bucket. The content is the challenge received from a home server auth endpoint. Then for authentication, the client needs to send the id address as username and as password a client app generated nonce that was used when requesting the challenge together with the app domain in the format nonce + "|" + appDomain + "|" + blockstackId . Users can do this manually on a account management site.

Client support for EOS

  • Currently only Diri Chat supports this type of authentication.
  • Client apps need to sign the following message: ${account.name} would like to login using the ${account.authority} permission. Block ID: ${chainInfo.last_irreversible_block_num} ${chainInfo.last_irreversible_block_id.slice(-12).toUpperCase()} Then for authentication, the client needs to send the account name as username and as password a client app generated nonce that was used when requesting the challenge together with the message and signature in the format nonce + "|" + message + "|" + signature .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for matrix-blockstack-password-provider, version 0.6.4
Filename, size File type Python version Upload date Hashes
Filename, size matrix_blockstack_password_provider-0.6.4.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page