Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format of response to POST /_matrix/identity/v2/store-invite is unclear #1361

Closed
richvdh opened this issue Nov 25, 2022 · 1 comment
Closed
Labels
clarification An area where the expected behaviour is understood, but the spec could do with being more explicit

Comments

@richvdh
Copy link
Member

richvdh commented Nov 25, 2022

Link to problem area:

https://spec.matrix.org/v1.5/identity-service-api/#post_matrixidentityv2store-invite

Issue

The public_keys response field is documented as having type [string] and description "A list of [server’s long-term public key, generated ephemeral public key]."

The type is flat-out wrong, and the description is insufficient. In practice, Sydent returns:

{
    "public_keys": [
        {
            "public_key": "sydentPubKeyBase64",
            "key_validity_url":  "https://<server>/_matrix/identity/api/v1/pubkey/isvalid"
        },
        {
            "public_key": "ephemeralPublicKeyBase64",
            "key_validity_url": "https://<server>/_matrix/identity/api/v1/pubkey/ephemeral/isvalid"
        }
    ]
}
@richvdh
Copy link
Member Author

richvdh commented Apr 5, 2023

Duplicate of #495

@richvdh richvdh marked this as a duplicate of #495 Apr 5, 2023
@richvdh richvdh closed this as completed Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification An area where the expected behaviour is understood, but the spec could do with being more explicit
Projects
None yet
Development

No branches or pull requests

1 participant