picoclaw/pkg/identity
Ashid332 cfa640780a fix: skip canonical ID parsing for @-prefixed allow_from entries (#2815)
Matrix user IDs (MXIDs) contain colons (e.g. @alice:matrix.org) which
caused MatchAllowed to misinterpret them as canonical platform:id pairs.
The @ prefix in the allow_from entry is an explicit signal of a username
or MXID, not a platform:id separator.

Changes:
- Move isAtUsername check before the canonical parsing block
- Gate canonical parsing with !isAtUsername to skip it for @ entries
- Add direct match of full @-prefixed entry against PlatformID/Username
- Add test cases covering all Matrix allow_from formats from the issue

Fixes #2815
2026-05-08 21:42:54 +05:30
..
identity.go fix: skip canonical ID parsing for @-prefixed allow_from entries (#2815) 2026-05-08 21:42:54 +05:30
identity_test.go fix: skip canonical ID parsing for @-prefixed allow_from entries (#2815) 2026-05-08 21:42:54 +05:30