Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/algora_web/live/sign_in_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ defmodule AlgoraWeb.SignInLive do
<.button :if={!@secret} href={@authorize_url} class="w-full py-5">
<Logos.github class="size-5 mr-2 -ml-1 shrink-0" /> Continue with GitHub
</.button>
<p :if={!@secret} class="mt-3 text-xs/5 text-muted-foreground">
GitHub calls this authorization "act on your behalf." Algora uses it to identify
your GitHub account and perform actions you request, like claiming bounties.
Repository access is granted separately when you install the GitHub App.
</p>
</div>

<.simple_form
Expand Down
13 changes: 13 additions & 0 deletions test/algora_web/live/sign_in_live_test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
defmodule AlgoraWeb.SignInLiveTest do
use AlgoraWeb.ConnCase, async: true

import Phoenix.LiveViewTest

test "explains GitHub authorization wording on login", %{conn: conn} do
{:ok, _view, html} = live(conn, ~p"/auth/login")

assert html =~ "GitHub calls this authorization"
assert html =~ "act on your behalf"
assert html =~ "Repository access is granted separately"
end
end