Skip to content

Commit

Permalink
Improve token auth form instructions in the desktop app (#2804)
Browse files Browse the repository at this point in the history
Co-authored-by: José Valim <[email protected]>
  • Loading branch information
jonatanklosko and josevalim authored Sep 30, 2024
1 parent 3470f2d commit b51a6ed
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions lib/livebook_web/controllers/auth_html/index.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,26 @@
Authentication required
</div>

<div class="mb-8 text-sm text-gray-200 space-y-2">
<div class="mb-8 text-sm text-gray-200">
<p :if={@authentication_mode == :password}>
Type password to access the Livebook.
</p>
<p :if={@authentication_mode == :token}>
Please check out the console for authentication URL or type the token directly
here.
</p>
<p :if={@authentication_mode == :token}>
To use password authentication, set the <code>LIVEBOOK_PASSWORD</code>
environment variable.
</p>
<div :if={@authentication_mode == :token} class="space-y-2">
<%= if Livebook.Config.app?() do %>
<p>
Please open Livebook menu in your taskbar, click "Copy URL", and paste it in your browser's address bar.
</p>
<% else %>
<p>
Please check out the console for authentication URL or type the token directly
here.
</p>
<% end %>
<p>
To use password authentication, set the <code>LIVEBOOK_PASSWORD</code>
environment variable.
</p>
</div>
</div>

<div class="text-gray-50 w-full">
Expand Down

0 comments on commit b51a6ed

Please sign in to comment.