Software /
code /
prosody-modules
Changeset
5330:071d05b13a06
mod_rest/rest.sh: Update 'client_uri' to module page
This started as a convenience wrapper for httpie + mod_rest that
eventually grew OAuth support.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 07 Apr 2023 15:27:03 +0200 |
parents | 5329:107d60c70c1a |
children | 5331:e00e3e2c72a3 |
files | mod_rest/example/rest.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_rest/example/rest.sh Fri Apr 07 15:26:41 2023 +0200 +++ b/mod_rest/example/rest.sh Fri Apr 07 15:27:03 2023 +0200 @@ -69,7 +69,7 @@ if [ -z "${OAUTH_CLIENT_INFO:-}" ]; then # Register a new OAuth client REGISTRATION_ENDPOINT="$(echo "$OAUTH_META" | jq -e -r '.registration_endpoint')" - OAUTH_CLIENT_INFO="$(http --check-status "$REGISTRATION_ENDPOINT" Content-Type:application/json Accept:application/json client_name=rest client_uri="https://www.zash.se/rest-script.html" redirect_uris:='["urn:ietf:wg:oauth:2.0:oob"]')" + OAUTH_CLIENT_INFO="$(http --check-status "$REGISTRATION_ENDPOINT" Content-Type:application/json Accept:application/json client_name=rest client_uri="https://modules.prosody.im/mod_rest" redirect_uris:='["urn:ietf:wg:oauth:2.0:oob"]')" mkdir -p "${XDG_CACHE_HOME:-$HOME/.cache}/rest/" typeset -p OAUTH_CLIENT_INFO >> "${XDG_CACHE_HOME:-$HOME/.cache}/rest/$HOST" fi