mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-28 15:18:21 +00:00
475d949a1e
- We now use the new endpoint for loggiong in via XBox tokens (/launcher/login) - We now check game entitlements instead of only relying on MC profile presence - Accounts can now be added even when they do not have a profile - The launcher will guide you through selecting a Minecraft name if you don't have one yet
48 lines
1.0 KiB
C++
48 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include <QString>
|
|
#include <QMultiMap>
|
|
#include <memory>
|
|
|
|
class MinecraftAccount;
|
|
|
|
struct AuthSession
|
|
{
|
|
bool MakeOffline(QString offline_playername);
|
|
|
|
QString serializeUserProperties();
|
|
|
|
enum Status
|
|
{
|
|
Undetermined,
|
|
RequiresOAuth,
|
|
RequiresPassword,
|
|
RequiresProfileSetup,
|
|
PlayableOffline,
|
|
PlayableOnline,
|
|
GoneOrMigrated
|
|
} status = Undetermined;
|
|
|
|
// client token
|
|
QString client_token;
|
|
// account user name
|
|
QString username;
|
|
// combined session ID
|
|
QString session;
|
|
// volatile auth token
|
|
QString access_token;
|
|
// profile name
|
|
QString player_name;
|
|
// profile ID
|
|
QString uuid;
|
|
// 'legacy' or 'mojang', depending on account type
|
|
QString user_type;
|
|
// Did the auth server reply?
|
|
bool auth_server_online = false;
|
|
// Did the user request online mode?
|
|
bool wants_online = true;
|
|
std::shared_ptr<MinecraftAccount> m_accountPtr;
|
|
};
|
|
|
|
typedef std::shared_ptr<AuthSession> AuthSessionPtr;
|