1 <% content_for :heading do %>
2 <h1><%= t ".title" %></h1>
5 <p><%= t ".introduction", :application => @pre_auth.client.name %></p>
8 <% @pre_auth.scopes.each do |scope| -%>
9 <li><%= t "oauth.scopes.#{scope}" %></li>
13 <div class="row justify-content-start g-0 mx-n1">
14 <div class="col-auto mx-1">
15 <%= bootstrap_form_tag :action => :create do |f| %>
16 <%= f.hidden_field :client_id, :value => @pre_auth.client.uid %>
17 <%= f.hidden_field :redirect_uri, :value => @pre_auth.redirect_uri %>
18 <%= f.hidden_field :state, :value => @pre_auth.state %>
19 <%= f.hidden_field :response_type, :value => @pre_auth.response_type %>
20 <%= f.hidden_field :scope, :value => @pre_auth.scope %>
21 <%= f.hidden_field :nonce, :value => @pre_auth.nonce %>
22 <%= f.hidden_field :code_challenge, :value => @pre_auth.code_challenge %>
23 <%= f.hidden_field :code_challenge_method, :value => @pre_auth.code_challenge_method %>
24 <%= f.primary t(".authorize") %>
27 <div class="col-auto mx-1">
28 <%= bootstrap_form_tag :action => :destroy, :html => { :method => :delete } do |f| %>
29 <%= f.hidden_field :client_id, :value => @pre_auth.client.uid %>
30 <%= f.hidden_field :redirect_uri, :value => @pre_auth.redirect_uri %>
31 <%= f.hidden_field :state, :value => @pre_auth.state %>
32 <%= f.hidden_field :response_type, :value => @pre_auth.response_type %>
33 <%= f.hidden_field :scope, :value => @pre_auth.scope %>
34 <%= f.hidden_field :nonce, :value => @pre_auth.nonce %>
35 <%= f.hidden_field :code_challenge, :value => @pre_auth.code_challenge %>
36 <%= f.hidden_field :code_challenge_method, :value => @pre_auth.code_challenge_method %>
37 <%= f.submit t(".deny") %>