1+ <?php
2+
3+ /*
4+ *
5+ * ____ _ _ __ __ _ __ __ ____
6+ * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
7+ * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
8+ * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
9+ * |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
10+ *
11+ * This program is free software: you can redistribute it and/or modify
12+ * it under the terms of the GNU Lesser General Public License as published by
13+ * the Free Software Foundation, either version 3 of the License, or
14+ * (at your option) any later version.
15+ *
16+ * @author PocketMine Team
17+ * @link http://www.pocketmine.net/
18+ *
19+ *
20+ */
21+
22+ declare (strict_types=1 );
23+
24+ namespace pocketmine \network \mcpe \protocol \types \login \openid ;
25+
26+ use pocketmine \network \mcpe \protocol \types \login \JwtBodyRfc7519 ;
27+
28+ /**
29+ * Mostly the same as the xbox token but with some weird differences
30+ */
31+ final class SelfSignedJwtBody extends JwtBodyRfc7519{
32+
33+ /** @required */
34+ public string $ cpk ; // the public key that was used to sign the "client properties" token
35+
36+ /** @required */
37+ public string $ leguuid ; // the client's chosen UUID
38+
39+ /** @required */
40+ public string $ xname ; // the player's chosen name, nothing to do with Xbox but shares the same property name
41+
42+ /** @required */
43+ public string $ mid ; // the player's Minecraft ID, identifying the player in Minecraft's PlayFab namespace
44+
45+ public int $ ap ; // ??
46+
47+ //The following are not required for self-signed authentication, but seem to be present as empty strings in a
48+ //self-signed token for some reason
49+
50+ public string $ nid ;
51+ public string $ nname ;
52+
53+ public string $ pid ;
54+ public string $ pname ;
55+
56+ public string $ xid ;
57+
58+ }
0 commit comments