Skip to content

wdesportes/minecraft.auth.server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wdes.auth.server

Yggdrasil-compatible authentication server. PHP 8.4, strict types, PSR-12, front-controller pattern.

Setup

chmod 750 storage/

The storage/ folder must be writable by the web server. It is git-ignored by default.

Visit /register.php to create your account.

Endpoints

Method Path Body fields
GET / or /index.php n/a
POST /authenticate or /authenticate.php username, password, clientToken?
POST /refresh or /refresh.php accessToken, clientToken
POST /invalidate or /invalidate.php accessToken, clientToken
POST /signout or /signout.php username, password
GET/POST /register or /register.php form: username, password

Swapping the storage backend

Implement StorageInterface, then change one line in index.php:

$storage = new PdoStorage($pdo);

About

Yggdrasil remade

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages