# HG changeset patch # User Kim Alvefur # Date 1685104379 -7200 # Node ID 9a4556a13cc74745099dd848e7d68908298d82ca # Parent 6cf2f32dbf40c00b72b9fd9c153fc9d64c6ab974 mod_rest/example: Include 'application_type' in registration It defaults to "web", which in turn mandates https: redirect URIs, which would not work with this example using the OOB URI. diff -r 6cf2f32dbf40 -r 9a4556a13cc7 mod_rest/example/prosody_oauth.py --- a/mod_rest/example/prosody_oauth.py Wed May 24 16:34:35 2023 +0200 +++ b/mod_rest/example/prosody_oauth.py Fri May 26 14:32:59 2023 +0200 @@ -16,6 +16,9 @@ "client_name": client_name, "client_uri": client_uri, "redirect_uris": [redirect_uri], + "application_type": redirect_uri[:8] == "https://" + and "web" + or "native", }, ).json()