Example plugin app for Alliance Auth.
Project description
Alt Corp management app for Alliance Auth
Features
Players can request an alt corp be added to your alt alliance. Requests cannot be completed without all characters in that corp having tokens in auth.
Installing
Altcorp is a plugin for Alliance Auth. If you don't have Alliance Auth running already, please install it first before proceeding. (see the official AA installation guide for details)
pip install aa-altcorp
Configure your Auth settings (local.py) as follows:
- Add
'altcorp'toINSTALLED_APPS - Add the following required lines to your settings file:
AC_ALT_ALLIANCE = 123456 # alt alliance ID
CELERYBEAT_SCHEDULE["altcorp_update"] = {
"task": "altcorp.update_corp_requests_for_alliance(",
"schedule": crontab(minute=0, hour=3),
"apply_offset": True,
}
Run migrations & copy static files
python manage.py migrate
python manage.py collectstatic
Restart your supervisor services for Auth
Settings
Here is a list of available settings for this app. They can be configured by adding them to your Auth settings file (local.py).
Note that all settings are optional and the app will use the documented default settings if they are not used.
| Name | Description | Default |
|---|---|---|
AC_ALT_ALLIANCE |
The ID of the alt alliance. | 123456 |
AC_ALLIANCE_IDS |
A list of alliance ID's. Toons in an alt corp must have their users main character as part of one of theses alliances. Blank ignores this check and will allow anyone to be in an alt corp | [] |
AC_WEBHOOK |
Webhook for sending manager notifications` | `` |
AC_REVOKE_DAYS |
Days of non compliance before the app tells you to remove a corp from alt alliance | 7 |
AC_IGNORE_CORPS |
A list of corps in the alt alliance to ignore. Use to ignore executor or other corps that don't require checks. | [] |
AC_REQUIRED_SCOPE |
A list of states and scopes to check toons for. | {"Member": ["publicData"]} |
Permissions
Here are all relevant permissions:
| Codename | Description |
|---|---|
general - Can access this app |
Basic permission required by anyone to access this app and request an alt corp. |
general - Can manage alt corp requests |
Users with this permission can manage requests. |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aa_altcorp-0.1.2b0.tar.gz.
File metadata
- Download URL: aa_altcorp-0.1.2b0.tar.gz
- Upload date:
- Size: 90.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f996abea3f293ae824c12ab7370a6cc694fce27928c804a4b6e69e9c91b7aee9
|
|
| MD5 |
a1d669e94ad194248a9e4cfed311c258
|
|
| BLAKE2b-256 |
5a3b3b5943f7d7de71fe7dd3b312875d8b77647095032a545f844b01f2e549fc
|
File details
Details for the file aa_altcorp-0.1.2b0-py3-none-any.whl.
File metadata
- Download URL: aa_altcorp-0.1.2b0-py3-none-any.whl
- Upload date:
- Size: 97.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45b66f5d696fff6e2a399da0c8c8a351711f08f93e37bd5b84c15ce7b588ebe2
|
|
| MD5 |
61b15c966ea4ea507c9186fc2aafd7ae
|
|
| BLAKE2b-256 |
6588687d8dfabedaa569744ecd832038af59726029d139fcd756745344480531
|