Browse Source

style: fix formatting

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

12
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"), {
"Content-Type": "application/json", "Authorization": "Bearer " + self.token.get("access_token"),
} if self.token is not None else {} "Content-Type": "application/json",
}
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

|||||||
100:0
Loading…
Cancel
Save