frenzy/lib/frenzy_web/templates/fervor/oauth/authorize.html.eex

13 lines
448 B
Elixir

<h2><%= @client.client_name %> wants to access your account</h2>
<%= form_tag Routes.oauth_path(@conn, :authorize_post), method: :post do %>
<input type="hidden" name="client_id" value="<%= @client.client_id %>">
<%= if @state do %>
<input type="hidden" name="state" value="<%= @state %>">
<% end %>
<div>
<%= submit "Grant access", class: "btn btn-primary" %>
<p>To reject the request, close this page.</p>
</div>
<% end %>