1 <p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>
2 <p class="alert alert-danger" role="alert"><%= get_flash(@conn, :error) %></p>
3 <h2>OAuth Authorization</h2>
4 <%= form_for @conn, o_auth_path(@conn, :authorize), [as: "authorization"], fn f -> %>
5 <%= label f, :name, "Name or email" %>
6 <%= text_input f, :name %>
8 <%= label f, :password, "Password" %>
9 <%= password_input f, :password %>
11 <%= label f, :scope, "Scopes" %>
12 <%= text_input f, :scope, value: @scope %>
14 <%= hidden_input f, :client_id, value: @client_id %>
15 <%= hidden_input f, :response_type, value: @response_type %>
16 <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
17 <%= hidden_input f, :state, value: @state%>
18 <%= submit "Authorize" %>