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);