mirror of
https://github.com/exzork/GCAuth.git
synced 2024-11-30 18:58:54 +00:00
add compatibility table
This commit is contained in:
parent
9be7df18d3
commit
73799ec045
14
README.md
14
README.md
@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
Grasscutter Authentication System
|
Grasscutter Authentication System
|
||||||
|
|
||||||
|
### Version Compatibility
|
||||||
|
| GCAuth | Grasscutter Development | Grasscutter Stable |
|
||||||
|
|---------------|-------------------------|--------------------|
|
||||||
|
| 2.1.4+ | 1.1.1-dev | - |
|
||||||
|
| 2.0.0 - 2.1.3 | 1.0.3-dev | 1.1.0 |
|
||||||
|
| 1.0.0 | 1.0.2-dev | - |
|
||||||
|
|
||||||
### Usage :
|
### Usage :
|
||||||
- Place jar inside plugins folder of Grasscutter.
|
- Place jar inside plugins folder of Grasscutter.
|
||||||
- To change hash algorithm change `Hash` in config.json inside plugins/GCAuth (Only Bcrypt and Scrypt is supported)
|
- To change hash algorithm change `Hash` in config.json inside plugins/GCAuth (Only Bcrypt and Scrypt is supported)
|
||||||
@ -11,16 +18,17 @@ Grasscutter Authentication System
|
|||||||
- Authentication Checking : `/authentication/type` (GET) , it'll return `me.exzork.gcauth.handler.GCAuthAuthenticationHandler` if GCAuth is loaded and enabled.
|
- Authentication Checking : `/authentication/type` (GET) , it'll return `me.exzork.gcauth.handler.GCAuthAuthenticationHandler` if GCAuth is loaded and enabled.
|
||||||
- Register: `/authentication/register` (POST)
|
- Register: `/authentication/register` (POST)
|
||||||
```
|
```
|
||||||
{"username":"username","password":"password","password_confirmation":"password_confirmation","access_key":"access_key"}
|
{"username":"username","password":"password","password_confirmation":"password_confirmation"}
|
||||||
```
|
```
|
||||||
- Login: `/authentication/login` (POST)
|
- Login: `/authentication/login` (POST)
|
||||||
```
|
```
|
||||||
{"username":"username","password":"password","access_key":"access_key"}
|
{"username":"username","password":"password"}
|
||||||
```
|
```
|
||||||
- Change password: `/authentication/change_password` (POST)
|
- Change password: `/authentication/change_password` (POST)
|
||||||
```
|
```
|
||||||
{"username":"username","new_password":"new_password","new_password_confirmation":"new_password_confirmation","old_password":"old_password","access_key":"access_key"}
|
{"username":"username","new_password":"new_password","new_password_confirmation":"new_password_confirmation","old_password":"old_password"}
|
||||||
```
|
```
|
||||||
|
- If you set ACCESS_KEY you must add `access_key: ACCESS_KEY` in your payload.
|
||||||
- Response is `JSON` with following keys:
|
- Response is `JSON` with following keys:
|
||||||
- `status` : `success` or `error`
|
- `status` : `success` or `error`
|
||||||
- `message` :
|
- `message` :
|
||||||
|
Loading…
Reference in New Issue
Block a user