MineSharp.Auth
0.1.0
See the version list below for details.
dotnet add package MineSharp.Auth --version 0.1.0
NuGet\Install-Package MineSharp.Auth -Version 0.1.0
<PackageReference Include="MineSharp.Auth" Version="0.1.0" />
paket add MineSharp.Auth --version 0.1.0
#r "nuget: MineSharp.Auth, 0.1.0"
// Install MineSharp.Auth as a Cake Addin #addin nuget:?package=MineSharp.Auth&version=0.1.0 // Install MineSharp.Auth as a Cake Tool #tool nuget:?package=MineSharp.Auth&version=0.1.0
MineSharp.Auth
Provides functionality to obtain a valid Minecraft session, used to connect to online Minecraft Servers.
Example:
Create an offline session:
var session = Session.OfflineSession("MyUsername");
Create an online session:
var session = await MicrosoftAuth.Login("microsoft_account@email.com");
When you first login, the use has to authenticate using the browser. By default the browser will automatically open and the user code required is printed to the console.
You can override this behaviour by passing a custom DeviceCodeHandler.
The Access token and refresh token are cached and if possible, the session is refreshed. In that case, the user doesn't have to login through the browser again.
Credits
Thanks to
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- CmlLib.Core.Auth.Microsoft (>= 2.2.0)
- CmlLib.Core.Auth.Microsoft.MsalClient (>= 2.0.0)
- MineSharp.Core (>= 0.1.0)
- Newtonsoft.Json (>= 13.0.3)
-
net8.0
- CmlLib.Core.Auth.Microsoft (>= 2.2.0)
- CmlLib.Core.Auth.Microsoft.MsalClient (>= 2.0.0)
- MineSharp.Core (>= 0.1.0)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MineSharp.Auth:
Package | Downloads |
---|---|
MineSharp.Protocol
Implementation of the Minecraft protocol. |
GitHub repositories
This package is not used by any popular GitHub repositories.