Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion permit/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _build_http_client(self, endpoint_url: str = "", *, use_pdp: bool = False, *
base_url=self.config.pdp if use_pdp else self.config.api_url,
headers={
"Content-Type": "application/json",
"Authorization": f"bearer {self.config.token}",
"Authorization": f"Bearer {self.config.token}",
**optional_headers,
},
)
Expand Down
2 changes: 1 addition & 1 deletion permit/enforcement/enforcer.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, config: PermitConfig):
self._context_store = ContextStore()
self._headers = {
"Content-Type": "application/json",
"Authorization": f"bearer {self._config.token}",
"Authorization": f"Bearer {self._config.token}",
}
self._base_url = self._config.pdp

Expand Down
2 changes: 1 addition & 1 deletion permit/pdp_api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _build_http_client(self, endpoint_url: str = "", **kwargs):
base_url=f"{self.config.pdp}",
headers={
"Content-Type": "application/json",
"Authorization": f"bearer {self.config.token}",
"Authorization": f"Bearer {self.config.token}",
},
)
client_config_dict = client_config.dict()
Expand Down
2 changes: 1 addition & 1 deletion permit/pdp_api/pdp_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, config: PermitConfig):
self._config = config
self._headers = {
"Content-Type": "application/json",
"Authorization": f"bearer {self._config.token}",
"Authorization": f"Bearer {self._config.token}",
}
self._base_url = self._config.pdp

Expand Down
Loading