Authentic Auth Service... Provides identification of a user from multiple external services.
Currently supported;
- Discord
- Login to AbandonAuth
- Create a Developer Application
- Navigate to
Developer Applications
- Click
Create a new application
, then clickCreate Application
- Take note of/save your application token as it will never be visible again (you can reset it anytime)
- Navigate to
- Navigate back to
Developer Applications
and click on the recently created app's UUID to edit it then clickEdit Callback URIs
. The callback URI you specify is where AbandonAuth will redirect users after authenticating. It should be whichever address your server is using to finish handling the login process. Some examples are as follows:- For local dev you could have something like this
"https://your_computers_local_ip:8001/login/abandonauth-callback"
- Or you should be able to use localhost
"https://localhost:8001/login/abandonauth-callback"
- Or you should be able to use localhost
- For a production website, you may use a domain name to redirect to
https://mc.abandonauth.cloud/api/callback
- For local dev you could have something like this
- Configure your application to use your developer application ID and secret to authenticate users from AbandonAuth.
For a quick example of how to log a user in using AbandonAuth, please see AbandonAuth's login UI
Create your .env
file in the root project directory, you can copy .env.sample
as the base for this.
Read how to setup Discord OAuth2 here.
docker compose up --build
A sample User schema has been created to allow the prisma client to generate upon project creation. This should be modified or deleted to fit your app's needs prior to creating any migrations.
This project is using prisma as the ORM
The migrations can be pushed to the running postgresql container using the
schema and migrations found in ./prisma/migrations
.
prisma db push --schema prisma/schema.prisma
Migrations can be created by using this command, while the database is running.
prisma migrate dev --schema prisma/schema.prisma --name "what this change does"
Install pre-commit to make sure you never fail linting in CI
poetry run pre-commit install