<%= form_tag rodauth.authorize_path, method: :post do %>

The application <%= rodauth.oauth_application[rodauth.oauth_applications_name_column] %> would like to access your data.

<%= rodauth.oauth_tokens_scopes_label %>

<% rodauth.scopes.each do |scope| %> <% is_default = scope == rodauth.oauth_application_default_scope %>
<%= check_box_tag "scope[]", scope, is_default, disabled: is_default, id: scope, class: "form-check-input" %> <%= label_tag scope, scope, class: "form-check-label" %> <%= hidden_field_tag "scope[]", scope if is_default %>
<% end %> <%= hidden_field_tag :client_id, params[:client_id] %> <% %i[access_type response_type state nonce redirect_uri code_challenge code_challenge_method].each do |oauth_param| %> <% if params[oauth_param] %> <%= hidden_field_tag oauth_param, params[oauth_param] %> <% end %> <% end %> <% if params[:response_mode] %> <%= hidden_field_tag :response_mode, params[:response_mode] %> <% end %>

<%= submit_tag rodauth.oauth_authorize_button, class: "btn btn-outline-primary" %> <%= link_to rodauth.oauth_cancel_button, "#{rodauth.redirect_uri}?error=access_denied&error_description=The+resource+owner+or+authorization+server+denied+the+request#{"&state=\#{rodauth.state}" if params[:state] }", class: "btn btn-outline-danger" %>

<% end %>