not working https://github.com/appsup-dart/openid_client/tree/master/example/flutter_example
JitenPalaparthi opened this issue · 0 comments
JitenPalaparthi commented
Example project for flutter (proofKeyForCodeExchange) not working with keycloak without clientSecret value.
Return invalid credentials when clientSecret is not given.
Flutter, Keycloak
It is not working with code_verifier. return error at openId.dart file
} else if (type == FlowType.proofKeyForCodeExchange) { json = await http.post(client.issuer.tokenEndpoint, body: { 'grant_type': 'authorization_code', 'code': code, 'redirect_uri': redirectUri.toString(), 'client_id': client.clientId, if (client.clientSecret != null) 'client_secret': client.clientSecret, 'code_verifier': _proofKeyForCodeExchange['code_verifier'] }, client: client.httpClient);