-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple servers in ejabberd auth.
This is an update to the xidauth.py ejabberd authentication script, such that is can support multiple server names and each with its own XID application name and endpoint. With this, it is possible to support multiple domains on ejabberd, e.g. associated to XID on different blockchains / networks.
- Loading branch information
Showing
5 changed files
with
102 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
#!/bin/sh -e | ||
|
||
# Copyright (C) 2020 The Xaya developers | ||
# Copyright (C) 2020-2022 The Xaya developers | ||
# Distributed under the MIT software license, see the accompanying | ||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
# This is a simple wrapper script around xidauth.py, using some environment | ||
# variables from the Docker context to set the arguments. | ||
|
||
exec ${HOME}/bin/xidauth.py \ | ||
--xid_rpc_url "${XID_RPC_URL}" \ | ||
--application "${XID_APPLICATION}" \ | ||
--servername "${XMPP_DOMAIN}" \ | ||
--servers ${XIDAUTH_SERVERS} \ | ||
--logfile "${HOME}/logs/xidauth.log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters