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.

Source Distribution

Supported by

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