Authorize access to your account

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?

<%% form_tag authorize_url do %> <%%= hidden_field_tag "response_type", params[:response_type]%> <%%= hidden_field_tag "client_id", params[:client_id]%> <%%= hidden_field_tag "redirect_url", params[:redirect_url]%> <%%= hidden_field_tag "state", params[:state]%> <%%= hidden_field_tag "scope", params[:scope]%>

<%%= check_box_tag 'authorize' %> authorize access

<%%= submit_tag %>

<%% end %>