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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2246a5d02598f71ec3ee96c2e727a19a6ce9e9948b0f612d1a4179a8cdd3c7b |
|
MD5 | 136572d7bf6d25615777cb84244202f8 |
|
BLAKE2b-256 | d8cfc4c24b56ad7e21e04cb81910c7d711ee31e443c72ad8b8d92a785a35c092 |