# HG changeset patch # User Kim Alvefur # Date 1682621575 -7200 # Node ID 36d40f5b81fe3682b309394015addc1021f037a1 # Parent 6155c46d9eead2b74766e1af92e547b23f6bf951 mod_rest/rest.sh: Include .sh suffix in client registration Slight improvement in how the text in mod_http_oauth2 templates reads. diff -r 6155c46d9eea -r 36d40f5b81fe mod_rest/example/rest.sh --- a/mod_rest/example/rest.sh Thu Apr 27 19:16:14 2023 +0200 +++ b/mod_rest/example/rest.sh Thu Apr 27 20:52:55 2023 +0200 @@ -71,7 +71,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://modules.prosody.im/mod_rest" application_type=native 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.sh client_uri="https://modules.prosody.im/mod_rest" application_type=native 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