-
Notifications
You must be signed in to change notification settings - Fork 32
Accepted format of Device ID is too restrictive #2654
Comments
On re-reading this morning, I actually see it does say more:
Which I think means that they can appear in the
So, allowed: But the is a note to say:
So, it probably makes sense to extend to allow device IDs: We chose to express the device ID as a URN Which (assuming I've interpreted correctly) allows As a sanity check, OAuth2 RFC6749 says:
Allowed: Given that MSC1597 has not progressed in 20 months, I suggest:
|
Following up on my previous suggestions:
Done in matrix-org/matrix-spec-proposals@8539ab2
Done in #2718.
I believe @sandhose has confirmed that device IDs constrained to MSC1597 are okay in MAS.
I believe @sandhose has confirmed that device IDs constrained to MSC1597 are okay in Synapse. As such I'm closing this issue. |
The authorization_grant policy requires the device ID to be 10+ alphanumeric characters:
matrix-authentication-service/policies/authorization_grant.rego
Line 65 in b692c6b
The
Device::try_from()
implementation allows any length of alphanumeric or-
characters:matrix-authentication-service/crates/data-model/src/compat/device.rs
Lines 79 to 81 in b692c6b
So, there is an inconsistency there.
MSC2967 notes:
What is completely unhelpful though as MSC1597 only says that the max length is 31 characters (which isn't necessarily sensible anyway).
So, if we were to take the MSC as it reads today we should allow all URL safe characters and
%
with a max length of 31. This isn't what MAS is doing but probably isn't sensible either.This issue was highlighted by generating a device ID by base64 encoding a Curve25519 public part which would give alphanumeric and
+
,/
,=
Two things:
The text was updated successfully, but these errors were encountered: