From f462d32f08125c7893634e6b43bc8a8334dc10ac Mon Sep 17 00:00:00 2001 From: Khaled Baklouti Date: Mon, 27 Nov 2023 16:33:12 +0000 Subject: [PATCH] set the revoke uri instead of token uri --- lib/src/openid.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/openid.dart b/lib/src/openid.dart index b37221d..2d0b6fe 100644 --- a/lib/src/openid.dart +++ b/lib/src/openid.dart @@ -219,7 +219,7 @@ class Credential { if (methods.contains('client_secret_basic')) { var h = base64 .encode('${client.clientId}:${client.clientSecret ?? ''}'.codeUnits); - await http.post(client.issuer.tokenEndpoint, + await http.post(uri, headers: {'authorization': 'Basic $h'}, body: request, client: client.httpClient);