Sha256: 59d48fdf14c9e8abee04b77b97087805cbf1ba0ece66a27eaaff7a408ca0978e

Contents?: true

Size: 944 Bytes

Versions: 12

Compression:

Stored size: 944 Bytes

Contents

<h2>Authorization Request</h2>


<p>
<%= @client_app.name %>  would like to access your Data. Only accept if you know them, you will then be redirected back to: "<%= @redirect_uri %>".
</p>

<%= form_for @client_app, :url => oauth_authorize_path(:client_id => @client_app.client_id, :redirect_uri => @redirect_uri), :method => :post do |f| %>


I Authorize <%= @client_app.name %> to:


  <ul>

    <li><%= check_box_tag 'permissions[read]', 1, true, {:disabled => true} %> Read</li>

    <% @scopes.each do |permission| %>
      <% is_checked =  @client_app.permissions.key?(permission) ? @client_app.permissions[permission] : true %>
      <li><%= check_box_tag "permissions[#{permission}]", 1, is_checked %> <%= permission.capitalize %></li>
    <% end %>
  </ul>

  <%= f.submit 'Authorize This Application', :id => 'oauthAuthorize' %>
<%- end -%>

<%= button_to 'Decline this Request', request.referrer||'/', :id => 'oauthNoAuthorize' %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
opro-0.4.0 app/views/opro/oauth/auth/new.html.erb
opro-0.3.3 app/views/opro/oauth/auth/new.html.erb
opro-0.3.2 app/views/opro/oauth/auth/new.html.erb
opro-0.3.1 app/views/opro/oauth/auth/new.html.erb
opro-0.3.0 app/views/opro/oauth/auth/new.html.erb
opro-0.3.0.pre3 app/views/opro/oauth/auth/new.html.erb
opro-0.3.0.pre2 app/views/opro/oauth/auth/new.html.erb
opro-0.3.0.pre1 app/views/opro/oauth/auth/new.html.erb
opro-0.3.0.pre app/views/opro/oauth/auth/new.html.erb
opro-0.2.1.pre app/views/opro/oauth/auth/new.html.erb
opro-0.2.0 app/views/opro/oauth/auth/new.html.erb
opro-0.1.0 app/views/opro/oauth/auth/new.html.erb