14 Commits

Author SHA1 Message Date
Frederico Santos
ad469a5c61 feat: Add Discord Guild ID flag to server configuration 2024-08-29 23:15:55 +01:00
Frederico Santos
46b1279852 feat: Add admin Discord link endpoint 2024-08-29 23:15:55 +01:00
Pancakes
9b771cbac6
Run gofmt 2024-07-27 21:12:51 -04:00
Pancakes
2ee09afac2
Emergency fixes 2024-07-27 20:38:32 -04:00
Frederico Santos
fa57f5997f
Added support for Discord OAuth2 (#25)
* Need a login check

* chore: Add Discord OAuth2 authentication endpoint

chore: Update dependencies and clean up code

chore: Update dependencies, add Discord OAuth2 authentication endpoint, and clean up code

chore: Update dependencies, add Google OAuth2 authentication endpoint, and clean up code

Code clean up

uniqueness on external account id

chore: Add Discord and Google OAuth2 authentication endpoints, and update dependencies

code review fixes

* chore: Update prodHandler to use clienturl flag for Access-Control-Allow-Origin

* chore: Refactor FetchDiscordIdByUsername and FetchGoogleIdByUsername to handle null values

* chore: Set secure and same-site attributes for session cookie

* chore: Set session cookie expiration to 3 months

* Update callback URL for Oauth2 client in docker-compose and rogueserver.go

* Update callback URL for Oauth2 client in docker-compose and rogueserver.go

---------

Co-authored-by: Matthew Olker <matthew.olker@gmail.com>
2024-07-27 18:41:44 -04:00
Krystian Chmura
03865f9b94
run golangci-lint in CI 2024-05-11 14:41:25 +02:00
maru
d4a906a0f1
Move HTTPS-related flags in rogueserver.go 2024-05-10 15:50:19 -04:00
maru
693663103b
Run formatter on files 2024-05-10 15:49:26 -04:00
Up
3ed5f41d58
make server automatically create DB schema if not exists (#5)
* add default values for CLI args

* add development docker compose file

* prevent crash if userdata dir does not exist

* accounts, acccountStats

* account stats and create db indices

* compensations and daily runs

* ensure uniqueness of daily seed

* start on port 8001 by default for client parity

* make generated schema match production

* sort imports
2024-05-10 15:30:47 -04:00
maru
8a32efeaa3
Clean up rogueserver.go 2024-05-10 13:40:00 -04:00
maru
633142eb29
Allow serving HTTPS 2024-05-10 13:16:35 -04:00
maru
8481626193
Relicense under AGPL 2024-04-29 17:26:46 -04:00
maru
235fb9c91c
Add copyright notice to files 2024-04-29 15:32:58 -04:00
maru
e8240c9c38
Rename to rogueserver 2024-04-29 15:22:27 -04:00