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

Proposal: support multiple signaturePublickeys #229

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

evan-goode
Copy link
Contributor

This PR allows authentication servers to specify an array of profile property public keys instead of just one.

I propose adding a new field, signaturePublickeys, to the authlib-injector metadata route at the root of the API. signaturePublickeys is an array of strings containing public keys in the same format as the signaturePublickey. Any of the keys specified either in signaturePublickeys or as the signaturePublickey can be used to verify the signature of a textures payload. Authentication servers aren't required to use the new field; signaturePublicKeys is simply ignored if it's missing from the metadata response.

With this change, authentication server A could forward a texture payload from authentication server B, and the client could accept a texture signed by either authentication server. Currently, this forwarding only works with Mojang as authentication server B, since Mojang's public key is hardcoded (mojang-publickey.der).

Wiki updates would be needed following this PR.

Allow authentication servers to specify an array of profile property
public keys instead of just one.

Adds a new field, `signaturePublickeys`, to the authlib-injector
metadata route at the root of the API. `signaturePublickeys` is an
array of strings containing public keys in the same format as the
`signaturePublickey`. Any of the keys specified either in
`signaturePublickeys` or as the `signaturePublickey` can be used to
verify the signature of a textures payload.

With this change, authentication server A can forward a texture payload
from authentication server B, and the client could accept a texture
signed by either authentication server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant