1 <h1>Authorize access to your account</h1>
2 <p>Would you like to authorize <%= link_to @token.client_application.name,@token.client_application.url %> (<%= link_to @token.client_application.url,@token.client_application.url %>) to access your account?</p>
3 <% form_tag authorize_url do %>
4 <%= hidden_field_tag "oauth_token", @token.token %>
5 <%- if params[:oauth_callback] -%>
6 <%= hidden_field_tag "oauth_callback", params[:oauth_callback] %>
9 <%= check_box_tag 'authorize' %> authorize access