Initial commit on Forgejo
All checks were successful
CI and deploy / Test (push) Successful in 4m52s
CI and deploy / Deploy production (push) Successful in 23s

Fresh repository history for elektrine/tarakan hosted at
https://git.elektrine.com/elektrine/tarakan.
This commit is contained in:
Maxfield Luke 2026-07-29 04:43:40 -04:00
commit af6077b9c3
455 changed files with 78366 additions and 0 deletions

View file

@ -0,0 +1,17 @@
defmodule TarakanWeb.OAuthRateLimitTest do
use TarakanWeb.ConnCase
test "OAuth routes are rate limited per client IP" do
for _ <- 1..20 do
conn = get(build_conn(), ~p"/auth/github")
assert conn.status == 302
end
conn = get(build_conn(), ~p"/auth/github")
assert conn.status == 429
assert text_response(conn, 429) =~ "too many requests"
conn = get(build_conn(), ~p"/auth/gitlab")
assert conn.status == 429
end
end