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

Missing field 'signatureRequired' when using drasl auth server #301

Open
1 task done
StefanB7 opened this issue Nov 17, 2024 · 3 comments
Open
1 task done

Missing field 'signatureRequired' when using drasl auth server #301

StefanB7 opened this issue Nov 17, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@StefanB7
Copy link

I've searched existing issues and couldn't find a duplicate.

  • I confirm this is not a duplicate.

Operating System

Ubuntu 24.04

Server Software Version/Commit

0.1.0/00af2b98683b11946cddb4f08de3b0ce04c1fddd

What happened?

I've set up an drash auth server and changed the auth_url in features.toml to point to the auth server.
When I try to join the server, I get an error:

[pumpkin::client@tokio-runtime-worker] Kicking Client id 0 for Texture Error Failed to parse JSON from player texture: missing field `signatureRequired` at line 1 column 279

The response returned by my auth server at https://<hostname>/session/minecraft/hasJoined?username={username}&serverId={server_hash} looks like this:

{
    "id": "<an-id>",
    "name": "stefan",
    "properties": [
        {
            "name": "textures",
            "value": "<value>",
            "signature": <signature>"
        }
    ]
}

there is indeed no signatureRequired property. I removed the signature_required property from the ProfileTextures struct in src/client/authentication.rs and I could join the world.

To Reproduce

  • Set up drasl auth server
  • Create account
  • Change auth_url in features.toml
  • Run server
  • Try to join server from client authenticated through drasl

Expected behavior

The server should let you join

@StefanB7 StefanB7 added the bug Something isn't working label Nov 17, 2024
@Snowiiii
Copy link
Owner

Weird. I wonder how properties.value looks like. It is an base64 utf8 string

@StefanB7
Copy link
Author

Weird. I wonder how properties.value looks like. It is an base64 utf8 string

Yes it is

@Snowiiii
Copy link
Owner

Weird. I wonder how properties.value looks like. It is an base64 utf8 string

Yes it is

How does it look like?. Normal Minecraft auth hss the signatureRequired boolean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants