From cd5f06e84bffd4c494ab93c1737cefd103434509 Mon Sep 17 00:00:00 2001 From: blackle Date: Tue, 30 Aug 2022 19:24:25 -0400 Subject: [PATCH] Add redirect_uri to all token requests --- app/src/main/java/jp/juggler/subwaytooter/api/TootApiClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/jp/juggler/subwaytooter/api/TootApiClient.kt b/app/src/main/java/jp/juggler/subwaytooter/api/TootApiClient.kt index 52048855..d1c932a4 100644 --- a/app/src/main/java/jp/juggler/subwaytooter/api/TootApiClient.kt +++ b/app/src/main/java/jp/juggler/subwaytooter/api/TootApiClient.kt @@ -793,7 +793,7 @@ class TootApiClient( val clientSecret = clientInfo.string("client_secret") ?: return result.setError("missing client_secret") - "grant_type=client_credentials&scope=read+write&client_id=${clientId.encodePercent()}&client_secret=${clientSecret.encodePercent()}" + "grant_type=client_credentials&scope=read+write&client_id=${clientId.encodePercent()}&client_secret=${clientSecret.encodePercent()}&redirect_uri=${REDIRECT_URL.encodePercent()}" .toFormRequestBody().toPost() .url("https://${apiHost?.ascii}/oauth/token") .build()