authlib-injector/README.md

25 lines
1.3 KiB
Markdown
Raw Normal View History

2017-08-12 15:35:17 +02:00
# authlib-injector
2018-06-30 08:13:26 +02:00
[![circle ci](https://img.shields.io/circleci/project/github/yushijinhun/authlib-injector/master.svg?style=flat-square)](https://circleci.com/gh/yushijinhun/authlib-injector/tree/master)
2018-06-29 15:20:14 +02:00
[![license](https://img.shields.io/github/license/yushijinhun/authlib-injector.svg?style=flat-square)](https://github.com/yushijinhun/authlib-injector/blob/master/LICENSE)
2017-12-31 11:14:07 +01:00
![language](https://img.shields.io/badge/language-java-yellow.svg?style=flat-square)
![require java 1.8+](https://img.shields.io/badge/require%20java-1.8%2B-orange.svg?style=flat-square)
2018-05-26 17:04:53 +02:00
通过运行时修改 authlib 实现游戏外登录,并为 Yggdrasil 服务端的实现提供规范。
2017-08-21 16:30:11 +02:00
2018-06-29 15:20:14 +02:00
关于该项目的详细介绍见 [wiki](https://github.com/yushijinhun/authlib-injector/wiki)。
2017-08-13 11:43:13 +02:00
## 编译
```
2018-01-25 11:46:29 +01:00
gradle
2017-08-13 11:43:13 +02:00
```
2018-05-26 17:04:53 +02:00
构建输出位于 `build/libs` 下。
2017-08-13 11:43:13 +02:00
2018-05-26 17:04:53 +02:00
或者直接从 [Jenkins](https://ci.to2mbn.org/job/authlib-injector) 下载构建好的 JAR。
2017-08-13 11:43:13 +02:00
## 部署
2018-06-29 15:20:14 +02:00
需要服务端实现本规范中的[扩展 API](https://github.com/yushijinhun/authlib-injector/wiki/Yggdrasil%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%8A%80%E6%9C%AF%E8%A7%84%E8%8C%83#%E6%89%A9%E5%B1%95api)。
2018-05-26 17:04:53 +02:00
通过添加以下 JVM 参数来配置:
2017-08-21 16:30:11 +02:00
```
2018-05-26 17:04:53 +02:00
-javaagent:{authlib-injector.jar 的路径}={Yggdrasil 服务端的 URLAPI Root}
2017-08-21 16:30:11 +02:00
```