auth

package
v0.0.0-...-0d76806 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2014 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URL         = "https://sessionserver.mojang.com/session/minecraft/hasJoined?username=%s&serverId=%s"
	Certificate = `` /* 1792-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func MojangSha1Hex

func MojangSha1Hex(arrBytes ...[]byte) (val string)

Types

type GameProfile

type GameProfile struct {
	Id         string                `json:"id"`
	Properties []GameProfileProperty `json:"properties"`
}

func Authenticate

func Authenticate(name string, serverId string, sharedSecret []byte, publicKey []byte) (profile GameProfile, err error)

type GameProfileProperty

type GameProfileProperty struct {
	Name      string `json:"name"`
	Value     string `json:"value"`
	Signature string `json:"signature"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL