about summary refs log tree commit diff
path: root/users/grfn/bbbg/src/bbbg/discord/auth.clj
AgeCommit message (Collapse)AuthorFilesLines
2022-01-29 r/3706 fix(grfn/bbbg): Fill in the right organizer role IDGriffin Smith1-2/+1
I figured this out by opening discord in my browser, navigating to the "roles" section of the server settings page, and looking at the API response for https://discord.com/api/v9/guilds/<guild-id>/roles/member-counts - the Organizer role has a unique member count, so I could sniff out its role ID by looking at the JSON. There *might* be a way in the API to do this, but I couldn't find it in the docs. Change-Id: Idac72886b12d53a570b473b55ef0cf7f965d37f2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5116 Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2022-01-29 r/3704 feat(grfn/bbbg): Add pluggable backends for dev secretsGriffin Smith1-2/+3
To allow people who aren't me / don't use `pass` to actually run the app locally, allow just reading dev secrets from a file on disk. Change-Id: I82a410ae877aa50b4302d5bda7072c79fa8f56fb Reviewed-on: https://cl.tvl.fyi/c/depot/+/5114 Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-12-27 r/3466 fix(grfn/bbbg): Fix organizer role IDGriffin Smith1-1/+1
Figured this out by opening web inspector for the discord web app and looking at the responses for role memeber counts. Change-Id: I0fa6418c4d1781a65ef50c9ed14665e2b142ae32 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4707 Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-12-27 r/3458 fix(grfn/bbbg): Configure web base urlGriffin Smith1-3/+10
This was originally intended to work around the issue caused by me accidentally ending up proxy_set_header'ing the Host header twice (which nginx *concatenates with slashes*, rather than overwriting!), but seems sensible regardless to make that whole thing (hopefully) a bit less brittle Change-Id: I877fa594b46e88d1ba05e793832beab3d0aaccdd Reviewed-on: https://cl.tvl.fyi/c/depot/+/4697 Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
2021-12-19 r/3298 feat(grfn/bbbg): Allow Organizers to sign in via DiscordGriffin Smith1-0/+83
Allow users with the Organizers role to sign in via a Discord Oauth2 handshake, creating a user in the users table and adding the ID of that user to the session. Change-Id: I39d9e17433e71b07314b9eabb787fb9214289772 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4409 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi>