CmlLib
English (v4)
English (v4)
  • 🧊CmlLib Projects
  • 🚀CmlLib.Core
    • Home
    • Getting Started
      • Minecraft Launcher
      • Minecraft Path
      • Versions
      • Launch Options
      • Event Handling
    • Login and Sessions
      • Microsoft Xbox Account
      • Offline Account
    • More APIs
      • MinecraftLauncherParameters
      • Rules
      • FileExtractor
      • GameInstaller
      • Java
    • Mod Loader Installers
      • Forge Installer
      • Fabric Installer
      • Quilt Installer
      • LiteLoader Installer
    • Utilities
      • Minecraft Changelogs
    • Resources
      • FAQ
      • Known Issues
      • Sample Launcher
      • License
  • 🔓Auth.Microsoft
    • Home
    • CmlLib.Core.Auth.Microsoft
      • JELoginHandler
      • JELoginHandlerBuilder
      • JEAuthenticator
      • Authentication with MSAL
    • XboxAuthNet.Game
      • OAuth
      • XboxAuth
      • XboxAuthException
      • AccountManager
      • Accounts
    • XboxAuthNet.Game.Msal
      • ClientID
      • MsalClientHelper
      • OAuth
    • CmlLib.Core.Bedrock.Auth
    • Resources
  • 🌐MojangAPI
    • Home
    • Mojang API
    • SecurityQuestion
  • ⚒️Installer.Forge
    • Home
    • Supported Versions
    • Getting Started
    • MForge
    • ForgeVersionLoader
Powered by GitBook
On this page
  • AddJEAuthenticator
  • AddForceJEAuthenticator
  • WithGameOwnershipChecker(bool value)
  • JEAuthException
  • 403: FORBIDDEN
  • 404: NOT_FOUND
Edit on GitHub
  1. Auth.Microsoft
  2. CmlLib.Core.Auth.Microsoft

JEAuthenticator

Set the options for JE authentication

AddJEAuthenticator

authenticator.AddJEAuthenticator();

The cached JE session is validated first, and if the session is expired or invalid, the JE authentication is attempted with the Xbox session.

AddForceJEAuthenticator

authenticator.AddForceJEAuthenticator();

Proceeds with the JE sign-in to the Xbox session, without validating the cached JE session.

WithGameOwnershipChecker(bool value)

authenticator.AddJEAuthenticator(je => je
    .WithGameOwnershipChecker(false)
    .Build());

Sets whether to check if the game is purchased and owned. default: false

GameOwnershipChecker can only check if the game was purchased from the official Mojang site. It is recommended that you DO NOT change the default value of false because Xbox GamePass user will be determined that they do not have an account even they have valid game license.

JEAuthException

This exception is thrown if something went wrong while logging into Minecraft JE. The ErrorType, Error, and ErrorMessage properties provide detailed error information.

403: FORBIDDEN

If the OAuth token is from third-party client id, you should register the client ID. See the last part ofClientID.

404: NOT_FOUND

The user doesn't have the game. (Demo version)

PreviousJELoginHandlerBuilderNextAuthentication with MSAL

Last updated 10 months ago

🔓