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:
parent
22729fa63e
commit
cd5f06e84b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user