changeset 5380:822d26271d9f

mod_rest/rest.sh: Set software_id in client registration to something Mostly just for exercising the extra fields.
author Kim Alvefur <zash@zash.se>
date Thu, 27 Apr 2023 20:56:24 +0200 (19 months ago)
parents 36d40f5b81fe
children 32a9817c7516
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	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