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 formatnonce + "|" + 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 formatnonce + "|" + message + "|" + signature
.
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
Close
Hashes for matrix_blockstack_password_provider-0.6.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40206d66c266c82f92a646d402c824cd8290b4c03a9c708c87889a69fa35c8b0 |
|
MD5 | 0853cfb5036a5558a13493f784cec4d2 |
|
BLAKE2b-256 | 6d7bdfaeb304ede387131ad73f2511b17283515bc581faf8da31a963f6d3d821 |