1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-01-26 16:56:28 +01:00

Add redirect_uri to all token requests

This commit is contained in:
blackle 2022-08-30 19:24:25 -04:00
parent 22729fa63e
commit cd5f06e84b

View File

@ -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()