Browse Source

style: fix formatting

pull/406/head
Jerónimo Mendes 2 years ago
parent
commit
23ecba1e6f
  1. 8
      src/keycloak/keycloak_admin.py

8
src/keycloak/keycloak_admin.py

@ -157,10 +157,14 @@ class KeycloakAdmin:
if self.token is None: if self.token is None:
self.get_token() self.get_token()
headers = {
headers = (
{
"Authorization": "Bearer " + self.token.get("access_token"), "Authorization": "Bearer " + self.token.get("access_token"),
"Content-Type": "application/json", "Content-Type": "application/json",
} if self.token is not None else {}
}
if self.token is not None
else {}
)
if self.custom_headers is not None: if self.custom_headers is not None:
# merge custom headers to main headers # merge custom headers to main headers

Loading…
Cancel
Save