GameProfile

From EscapeToMars
Jump to navigation Jump to search

We´d expect calling

GET https://sessionserver.mojang.com/session/minecraft/profile/<uuid>

with?unsigned=false to return a properties map with one value "textures" with value/signature


  "textures" : {
    "SKIN" : {
      "id" : "a6244ad673c449938266ffa835625bda",
      "type" : "SKIN",
      "url" : "http://textures.minecraft.net/texture/2f6b802dc5d47e9207db83ba3f81c88dbe83f7ebfeceee1934497098565130c5",
      "profileId" : "2e65b6847a2f4dd4ac80f61a6a6adfe5",
      "textureId" : "2f6b802dc5d47e9207db83ba3f81c88dbe83f7ebfeceee1934497098565130c5"
    }

Unfortunately the sessionserver now pretty much randomly returns additional data inside the base64 value:

{
  "textures" : {
    "SKIN" : {
      "id" : "a6244ad673c449938266ffa835625bda",
      "type" : "SKIN",
      "url" : "http://textures.minecraft.net/texture/2f6b802dc5d47e9207db83ba3f81c88dbe83f7ebfeceee1934497098565130c5",
      "profileId" : "2e65b6847a2f4dd4ac80f61a6a6adfe5",
      "textureId" : "2f6b802dc5d47e9207db83ba3f81c88dbe83f7ebfeceee1934497098565130c5"
    }
  },
  "skin" : {
    "id" : "a6244ad673c449938266ffa835625bda",
    "type" : "SKIN",
    "url" : "http://textures.minecraft.net/texture/2f6b802dc5d47e9207db83ba3f81c88dbe83f7ebfeceee1934497098565130c5",
    "profileId" : "2e65b6847a2f4dd4ac80f61a6a6adfe5",
    "textureId" : "2f6b802dc5d47e9207db83ba3f81c88dbe83f7ebfeceee1934497098565130c5"
  },
  "cape" : null
}

Simply storing and sending out these values results in an invalid skin on the client. Removing the additonal "skin" entry wont work as the signature will be wrong (?). Only option currently would be to re-download the data - but this has the 60sec timeout...


Raw invalid:

{
  "id" : "2e65b6847a2f4dd4ac80f61a6a6adfe5",
  "name" : "Green",
  "properties" : [ {
    "name" : "textures",
    "value" : "ewogICJ0ZXh0dXJlcyIgOiB7CiAgICAiU0tJTiIgOiB7CiAgICAgICJpZCIgOiAiYTYyNDRhZDY3M2M0NDk5MzgyNjZmZmE4MzU2Mj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KeHLbK54Fhr9aS1UFzORXLGiNDeEW55nwxKajlpW5bqUH2g6zHuvb1k7LLdKUHXDXSPH1eqd2bZV1OpJK1H/IdVkBrsiUk5gThO74c8Bt2vWeSiDlrvzf0YZdtGmg3zpAV+FsX6siJToJlRetwldMRo/OGCaE68rDTPApbiHdhk3kd1yOuDPp/ewfJIpKnEhOeD/Um/vAn77KbubeE4FqbpkARJecpPTAzTSBlNdpgVZRhh3e6zi5ubrmqMorwbZyrhy5bsOJn5/dus/6XrDxMPXmqWxhnqaBtszrlDusl00NIEB+T26mP7BtXHtNLWQh79VdYM5Z+zbq4tulIFt3MCo/48vLnMYAklDF2lIHkiW/ZvN5vfTjfABkxqQex1/K/GOvzseUsnd7IInvW+iRkVUh7YGkoey0dvlPOnj1WvSwynjpZEAptl3WSvbTGruwpLj1a8X7ZvI6KF+jHo2vtksXx0W4X05mSwqBKRSzeSE2k07nd3Ww0MAFfPLMw="
  } ]
}

Raw valid:

{
  "id": "9663af087ad14c1b8d38394f618519e1",
  "name": "Angiekitty87",
  "properties": [
    {
      "name": "textures",
      "value": "eyJ0aW1lc3RhbXAiOjE1ODczNjYwNzA4MDgsInByb2ZpbGVJZCI6Ijk2NjNhZjA4N2FkMTRjMWI4ZDM4Mzk0ZjYxODUxOWUxIiwicHJvZmlsZU5hbWUiOiJBbmdpZWtpdHR5ODciLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiU0tJTiI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlLzYyYjQxMjZjZjk4NjlmNDYwNjg3NzUxZTYxYjhjYzRhOTc0NDk4OTUwODY3MzVjZmUwNmIzNDJhODQ0Zjg3ZjQifX19",
      "signature": "HYRN3pna2Rv41HhHXURu+F2eXtgDMZYXnR14wlyFuMOklSbkKKXCs300TaqIINsM9d/WK4BlQc1uPZeyhYhfG/IwDbsTaz7a9phjusxxy3bn7MJvVaT4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