Go to file
2022-07-10 11:48:17 +08:00
gradle/wrapper 🎉 Begin a project 2022-05-14 00:45:58 +08:00
src/main ⬆️ Upgrade dependencies 2022-07-10 11:48:17 +08:00
.gitignore 🎉 Begin a project 2022-05-14 00:45:58 +08:00
build.gradle ⬆️ Upgrade dependencies 2022-07-10 11:48:17 +08:00
gradlew 🎉 Begin a project 2022-05-14 00:45:58 +08:00
gradlew.bat 🎉 Begin a project 2022-05-14 00:45:58 +08:00
README.md 📝 Recommend frontend 2022-05-15 23:21:06 +08:00
settings.gradle 🎉 Begin a project 2022-05-14 00:45:58 +08:00

GCAuth OAuth

The in-game login system for Grasscutter is based on oauth and GCAuth.

Current Features:

  • Use Twitter oauth to login
  • Custom pages

Important Notes:

This plugin is made to run on the current Development branch of Grasscutter. \

This plugin is in very early development and only have the backend now. Frontend is extermely hardcore.

Setup

Download Plugin Jar

See releases.

Compile yourself

  1. Pull the latest code from github using git clone https://github.com/Xtao-Team/GCAuth-OAuth in your terminal of choice.
  2. Locate your grasscutter server and copy the grasscutter server jar into the newly created GCAuth-OAuth/lib folder
  3. Navigate back into the project root folder called GCAuth-OAuth folder and run gradlew build (cmd) or ./gradlew build (Powershell, Linux & Mac).
  4. Assuming the build succeeded, in your file explorer navigate to the GCAuth-OAuth folder, you should have a gcauth_oauth.jar file, copy it.
  5. Navigate to your Grasscutter server, find the plugins folder and paste the gcauth_oauth.jar into it.
  6. Start your server.

...Jump to next section...

Usage

  1. Put the all the frontend files into the folder GRASSCUTTER_RESOURCE/plugins/GCAuth/OAuth. Note that your must have login.html for now. You are free to put any other dynamiclly loaded file(e.g. .js, .css) in that folder. Check the last section for current available frontend.

  2. Put the gcauth.jar file into the plugins folder of your grasscutter server. GCAuth

  3. Log in to your server and you should be able to log in with Twitter account. (make sure webapi-os.account.hoyoverse.com is in your proxy list)

Your final plugins' folder's directory structure should look similar to this

plugins
│   gcauth.jar
│   gcauth_oauth.jar
│   ...
└───GCAuth
    │   config.json
    └───OAuth
        │   login.html
        │   ...

Frontend

Recommend

TwitterTheme

  • Login page
  • Register page
  • Change password page
  • Error notice

Default

en zh

  • Login page