# HG changeset patch # User Kim Alvefur # Date 1682621784 -7200 # Node ID 822d26271d9fd0f95fdc79ec94dac97e602ec698 # Parent 36d40f5b81fe3682b309394015addc1021f037a1 mod_rest/rest.sh: Set software_id in client registration to something Mostly just for exercising the extra fields. diff -r 36d40f5b81fe -r 822d26271d9f mod_rest/example/rest.sh --- a/mod_rest/example/rest.sh Thu Apr 27 20:52:55 2023 +0200 +++ b/mod_rest/example/rest.sh Thu Apr 27 20:56:24 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.sh 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 software_id=0bdb0eb9-18e8-43af-a7f6-bd26613374c0 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