27 Commits (9f2a5c0d30675e1c26da1b26406046b20452f3ed)

Author SHA1 Message Date
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
2 months ago
Pancakes a3fcec4a4c
Don't use Sprintf in Errorf for no reason 2 months ago
Pancakes 9b771cbac6
Run gofmt 4 months ago
Pancakes ed8122cd3b
Don't defer redirects 4 months ago
Pancakes 611a0e3dec
Fix game url stuff in google.go 4 months ago
Pancakes 855760ed01
Fix more stuff 4 months ago
Pancakes 2ee09afac2
Emergency fixes 4 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>
4 months ago
Pancakes 567cb9c7be
Optimize /account/info 5 months ago
maru cd13fe3cff
Use errors.Is everywhere 6 months ago
Up 834d1e62a0
add foreign key constraint on client session table 6 months ago
maru 192b777ac3
Set ArgonMaxInstances to number of cores 7 months ago
Up 405a578e8c manually parse all save states for now 7 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.
7 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
7 months ago
maru 8481626193
Relicense under AGPL 7 months ago
maru 235fb9c91c
Add copyright notice to files 7 months ago
maru e8240c9c38
Rename to rogueserver 7 months ago
maru cbcc68f8e4
Add password changes 7 months ago
maru 4ce5a0198d
Don't check token length twice in Logout 7 months ago
maru b00ed4c0b9
Use WriteFile instead of stream writing to files 7 months ago
maru 1d54c1ad64
Use channels to rate limit argon2 7 months ago
maru fbd4a60a4a
Add mutex to deriveArgon2IDKey 7 months ago
maru 62102ab4fd
Use forms instead of JSON for login/register requests 7 months ago
maru 39199dc1b1
Move consts in account package to common.go 7 months ago
maru f395dc145b
Code consistency 7 months ago
maru 1f0f38d38e
Move endpoint categories into their own packages 7 months ago