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
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ Write the date in place of the "Unreleased" in the case a new version is release

### Added

- Tests for the WebSocket endpoints that stream tabukar data.
- Tests for the WebSocket endpoints that stream tabular data.
- `TagBasedAccessPolicy` now accepts a list of providers in addition to a
single provider string.

## v0.2.7 (2026-02-27)

Expand Down
6 changes: 3 additions & 3 deletions tiled/access_control/access_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(
access_tags_parser,
scopes=None,
):
self.provider = provider
self.providers = [provider] if isinstance(provider, str) else list(provider)
self.scopes = scopes if (scopes is not None) else ALL_SCOPES

access_tags_parser = import_object(access_tags_parser)
Expand All @@ -92,11 +92,11 @@ def __init__(

def _get_id(self, principal):
for identity in principal.identities:
if identity.provider == self.provider:
if identity.provider in self.providers:
return identity.id
else:
raise ValueError(
f"Principal {principal} has no identity from provider {self.provider}."
f"Principal {principal} has no identity from providers {self.providers}."
f"The Principal's identities are: {principal.identities}"
)

Expand Down
Loading