Skip to content

CmlLib/SessionVerifierServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SessionVerifierServer

verify a user's minecraft session

node-minecraft-protocol encrypt.js

node-minecraft-protocol login.js

node-yggdrasil

Protocol#Login

Protocol Encryption

API

GET /startlogin

Response

Property Type Description
serverId string server id
publicKey string public key formatted in DER and encoded in base64
verifyToken string verify token encoded in base64

POST /verifysecret

Request

Property Type Description
username string username
sharedSecret string shared secret encoded in base64

Response

Property Type Description
username string
uuid string

POST /verifytoken

Request

Property Type Description
accessToken string
uuid string
username string

Response

Property Type Description
username string
uuid string

Configuration

/src/config-prod.ts

import { Config } from "./config";

const prod: Config = {
    port: 23333,
    serverId: 'serverid',
    serverKeyPem: `
-----BEGIN RSA PRIVATE KEY-----
(pem)
-----END RSA PRIVATE KEY-----`
}

export default prod;
Property Type Description
port number http server port
serverId string Server ID String
serverKeyPem string RSA private key, formatted in PEM with PKCS1 padding, used for encrypting and decrypting shared secrets

About

NodeJS server for verifying a Minecraft session

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published