package
module
Version:
v0.0.0-...-f765acc
Opens a new window with list of versions in this module.
Published: Oct 25, 2021
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
msauth
中文README
Microsoft Authentication Scheme for Minecraft
This is a fork of original https://github.com/BaiMeow/msauth. There are few changes:
- Translated into English
- Added log in method for machines that without PowerShell installed, especially in cosole
Usage
- Call SetClient() to set clientID. clientSecret can be empty. For more details, see https://wiki.vg/Microsoft_Authentication_Scheme.
- Call Login() to log in
Documentation
¶
func SetClient(id, secret string)
SetClient 来自microsoft的clientID和secret
type AuthResp struct {
IssueInstant time.Time `json:"IssueInstant"`
NotAfter time.Time `json:"NotAfter"`
Token string `json:"Token"`
DisplayClaims struct {
XUI []struct {
UHS string `json:"uhs"`
} `json:"xui"`
} `json:"DisplayClaims"`
}
type Profile struct {
Id string `json:"id"`
Name string `json:"name"`
Skins []struct {
Id string `json:"id"`
State string `json:"state"`
URL string `json:"url"`
Variant string `json:"variant"`
Alias string `json:"alias"`
} `json:"skins"`
Capes interface{} `json:"capes"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.