Created
March 23, 2022 22:49
-
-
Save sproctor/07f81373e633821f3c4c53272e00ac87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val client = HttpClient() | |
val response = client.post<HttpResponse> { | |
url("https://$domain/oauth/token") | |
header("content-type", "application/x-www-form-urlencoded") | |
body = "grant_type=authorization_code&client_id=$clientId&code_verifier=$verifier" + | |
"&code=$code&redirect_uri=$encodedRedirectUri" | |
} | |
println("response: ${response.readText()}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment