28 Commits (beta)

Author SHA1 Message Date
Pancakes 00e783ff8a
Styling fixes 2 months ago
Frederico Santos 8e20875453
feat: Add admin Discord link endpoint (#49)
* feat: Add admin Discord link endpoint

* feat: Add Discord Guild ID flag to server configuration

* feat: Add logging for Discord ID addition in admin Discord link endpoint

* chore: Update variable name for Discord guild ID in account package

* chore: Add logging for Discord ID addition in admin Discord link endpoint

* chore: Add admin Discord link endpoint

* chore: Add logging for Discord ID addition in admin Discord link endpoint

* chore: Remove unnecessary code in handleAdminDiscordLink function

* chore: Update logging format in handleAdminDiscordLink function

* chore: Refactor handleAdminDiscordLink function for improved logging

* chore: Update Discord Bot Token and Discord Guild ID flags in server configuration

* chore: Refactor handleAccountInfo function for improved readability and error handling

* chore: Update server configuration flags for Discord Bot Token and Guild ID

* Refactor handleAdminDiscordLink function for improved error handling and logging

* feat: Add "Helper" role to Discord admin check for enhanced access control
3 months ago
Pancakes a3fcec4a4c
Don't use Sprintf in Errorf for no reason 3 months ago
Pancakes 9b771cbac6
Run gofmt 5 months ago
Pancakes ed8122cd3b
Don't defer redirects 5 months ago
Pancakes 611a0e3dec
Fix game url stuff in google.go 5 months ago
Pancakes 855760ed01
Fix more stuff 5 months ago
Pancakes 2ee09afac2
Emergency fixes 5 months ago
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>
5 months ago
Pancakes 567cb9c7be
Optimize /account/info 6 months ago
maru cd13fe3cff
Use errors.Is everywhere 7 months ago
Up 834d1e62a0
add foreign key constraint on client session table 7 months ago
maru 192b777ac3
Set ArgonMaxInstances to number of cores 8 months ago
Up 405a578e8c manually parse all save states for now 8 months ago
Up 0d6539a87b
continue on existing save (#3)
* long blob

* fix continue

* one slot only?

* fallback if there is no slot data yet

* Revert "one slot only?"

This reverts commit 20997e9cd8.
8 months ago
Up 1f95f7c042
hotfix: move save data to DB (#2)
* start reading save data from DB

* finish migration code

* remove leftover dir creation

* fix import cycle

* remove more dir creation

* update gitignore

* fix pk

* better table creation

* use REPLACE INTO

* fix typo
8 months ago
maru 8481626193
Relicense under AGPL 8 months ago
maru 235fb9c91c
Add copyright notice to files 8 months ago
maru e8240c9c38
Rename to rogueserver 8 months ago
maru cbcc68f8e4
Add password changes 8 months ago
maru 4ce5a0198d
Don't check token length twice in Logout 8 months ago
maru b00ed4c0b9
Use WriteFile instead of stream writing to files 8 months ago
maru 1d54c1ad64
Use channels to rate limit argon2 8 months ago
maru fbd4a60a4a
Add mutex to deriveArgon2IDKey 8 months ago
maru 62102ab4fd
Use forms instead of JSON for login/register requests 8 months ago
maru 39199dc1b1
Move consts in account package to common.go 8 months ago
maru f395dc145b
Code consistency 8 months ago
maru 1f0f38d38e
Move endpoint categories into their own packages 8 months ago