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
File details
Details for the file matrix_blockstack_password_provider-0.7.0.tar.gz
.
File metadata
- Download URL: matrix_blockstack_password_provider-0.7.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/2.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d7ee1fa9e0e2c39cbd9beddd4d7f52e5d4cae503e711ce3c0a74895f6edefb0 |
|
MD5 | 5ae4cd1ac2b9c7f43e21fbbe99994863 |
|
BLAKE2b-256 | 31db22c75d94dbc1e4f00142f7e1ecdae6744093f8857472869668bc3b75f9fc |