Browse Source

One more async

pull/615/head
Cristian Betivu 5 months ago
parent
commit
8a65593f69
  1. 2
      src/keycloak/keycloak_openid.py

2
src/keycloak/keycloak_openid.py

@ -1406,7 +1406,7 @@ class KeycloakOpenID:
self.connection.add_param_headers("Authorization", "Bearer " + token) self.connection.add_param_headers("Authorization", "Bearer " + token)
content_type = self.connection.headers.get("Content-Type") content_type = self.connection.headers.get("Content-Type")
self.connection.add_param_headers("Content-Type", "application/x-www-form-urlencoded") self.connection.add_param_headers("Content-Type", "application/x-www-form-urlencoded")
data_raw = self.connection.raw_post(URL_TOKEN.format(**params_path), data=payload)
data_raw = await self.connection.a_raw_post(URL_TOKEN.format(**params_path), data=payload)
( (
self.connection.add_param_headers("Content-Type", content_type) self.connection.add_param_headers("Content-Type", content_type)
if content_type if content_type

Loading…
Cancel
Save