8 Commits (6f48abaffeb9f95facb7f6d233e0e61c661e2bca)

Author SHA1 Message Date
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>
2 months ago
maru cd13fe3cff
Use errors.Is everywhere 4 months ago
maru 8481626193
Relicense under AGPL 5 months ago
maru 235fb9c91c
Add copyright notice to files 5 months ago
maru e8240c9c38
Rename to rogueserver 5 months ago
maru 62102ab4fd
Use forms instead of JSON for login/register requests 5 months ago
maru f395dc145b
Code consistency 5 months ago
maru 1f0f38d38e
Move endpoint categories into their own packages 5 months ago