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

11 lines
389 B
Elixir

<h1><%= @client.client_name %> wants to access your account</h1>
<%= 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 class="form-group">
<%= submit "Grant access" %>
</div>
<% end %>